math-all

Versatile JavaScript library for precise rounding of decimal places and significant digits.

precise_to_n_fractionals

Precise to N fractional digits without rounding the Number. 99.9999 => precise_to_n_fractionals(99.9999,3) => 99.999