1
Vote

round method is not working with an argument

description

context:

I'm using Windows 7 64bits and IronRuby 1.1.3.0 on .NET 4.0.30319.18408

problem:

when I use the method round([argument]) without argument is working well, but when I used the same method but with the number of precision, it fire an exception : wrong number of arguments (1 for 0) (ArgumentError)

the text code is simple:
puts 123.435345.round()
puts "12.045678".to_f.round(3)
puts 34.4568745968.round(3)
It's working on ruby 1.9 to 2.1.5 without any problem, but not when I used IronRuby.

Thanks in advance to solve this issue.
Antonio

comments