Jruby 1.7.5 oddity with round

In 1.7.3

jruby-1.7.3 :001 > 0.0.round
=> 0
jruby-1.7.3 :002 > 0.0.round(1)
=> 0.0
jruby-1.7.3 :003 > 0.round(1)
=> 0.0

In 1.7.5

jruby-1.7.5 :018 > 0.0.round
=> 0
jruby-1.7.5 :019 > 0.0.round(1)
=> 0
jruby-1.7.5 :020 > 0.round(1)
=> 0.0

I was looking for any changes around this and couldn’t find anything.

Thoughts?

On Oct 16, 2013, at 10:59 AM, Michael A. [email protected]
wrote:

jruby-1.7.5 :018 > 0.0.round
=> 0
jruby-1.7.5 :019 > 0.0.round(1)
=> 0
jruby-1.7.5 :020 > 0.round(1)
=> 0.0

I was looking for any changes around this and couldn’t find anything.

Thoughts?

Looks like a bug. Do you mind opening a ticket?

Thanks.

Hiro

Yup no problem, was actually just doing that now. Thanks