Significant Digit Converter
Accepts: Any numeric value. Returns: The same number, correctly rounded to the number of significant digits specified. Works for negative numbers, whole numbers, decimals, and for numbers smaller than 1. Example 1: Given 1234567890.1 and specifying 3 significant digits, would return 1230000000 (1.23 billion) Example 2: Given -0.00987654 and specifying 2 significant digits, would return -0.0099