Status: New
Owner: ----
New issue 792 by omattos: Math.sin() of an integer always returns
Math.sin(1) in 64 bit builds
http://code.google.com/p/v8/issues/detail?id=792
Chrome Version : 6.0.458.1 dev
Linux 64 bit.
What steps will reproduce the problem?
1. Visit the following URL in Chromium x64 Linux:
javascript:alert(Math.sin(1));alert(Math.sin(2));alert(Math.sin(3));
What is the expected result?
Three different numbers (0.84 then 0.90 then 0.14)
What happens instead?
All three alert boxes show the same value!!
Please provide any additional information below. Attach a screenshot if
possible.
Note this isn't always consistent. Sometimes I see:
0.84 then 0.90 then 0.90
Other times I see:
0.84 then 0.84 then 0.84
Both are badly wrong though!! Note it works fine on 32 bit builds. It
also works fine with non-integers.
(reposted from chromium issue tracker)
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev