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?

Reply via email to