Re: Bug at Math.round

2013-05-29 Thread Jim Laskey (Oracle)
This looks to be an artifact of String.toString. We will address. jjs> java.lang.System.out["println(double)"](java.lang.Math.copySign(0.0, -1)); -0.0 jjs> java.lang.System.out["println(double)"](java.lang.Math.sin(-0.0)); -0.0 Cheers, -- Jim On 2013-05-29, at 12:45 AM, toshiyuki kojima w

Re: Bug at Math.round

2013-05-29 Thread Marcus Lagergren
Hi! I just pushed a fix, which will be migrated to TL shortly. Thanks /M On May 29, 2013, at 5:45 AM, toshiyuki kojima wrote: > Hello, > > > I found a bug: > > Math.round(-0) should return -0, but Math.round(-0) returns +0 in nashorn. > > > I confirmed this bug using revision: > > cha

Bug at Math.round

2013-05-29 Thread toshiyuki kojima
Hello, I found a bug: Math.round(-0) should return -0, but Math.round(-0) returns +0 in nashorn. I confirmed this bug using revision: changeset: d56168970de1 date:Tue May 28 16:37:11 2013 +0530 summary: 8015459: Octane test run fails on Turkish locale http://ecma-inte