最佳答案
如何在JRuby(1.6.X)中将浮点数四舍五入到小数点后2位?
number = 1.1164
number.round(2)
# The above shows the following error
# wrong number of arguments (1 for 0)