Takes a number like a float and fixes it's digits. Example:
mathf.fixDigits(20.12345, 2) ==> 20.12 mathf.fixDigits(20.12345, 3) ==> 20.123 Copy
mathf.fixDigits(20.12345, 2) ==> 20.12 mathf.fixDigits(20.12345, 3) ==> 20.123
The number to convert
The number of digits to output.
Takes a number like a float and fixes it's digits. Example: