Forum: JRuby jruby 1.7.5 oddity with round

5969144beac5c774f674b841f7c15202?d=identicon&s=25 Michael Alletto (Guest)
on 2013-10-16 17:01
(Received via mailing list)
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?
40e5e9fe36a1f85166493faac2c17499?d=identicon&s=25 Hirotsugu Asari (Guest)
on 2013-10-16 17:06
(Received via mailing list)
Attachment: signature.asc (494 Bytes)
On Oct 16, 2013, at 10:59 AM, Michael Alletto <malletto@gmail.com>
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
5969144beac5c774f674b841f7c15202?d=identicon&s=25 Michael Alletto (Guest)
on 2013-10-16 17:10
(Received via mailing list)
Yup no problem, was actually just doing that now.  Thanks
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.