I'm seeking for a way to round floats up to specified number of
decimal digits. e.g. roundToDigits(3.1415, 2) should return 3.14.
Is there a standard function for that or what is the most correct
way to do that?
- rounding floats up to specified number of decimal digits ref2401