How do you round a float to 2 decimal places in JRuby(1.6.x)? number = 1.1164 number.round(2) # The above shows the following error ...
-
June 3, 2022
- 0 Comments