Status: New
Owner: ----
New issue 2669 by swivelgames: Basic Addition Resulting In Anomalies
http://code.google.com/p/v8/issues/detail?id=2669
<CODE>
console.log( 16.1 ); // >16.1
console.log( 9.89 ); // >9.89
console.log( 16.1 + 9.89 ); // >25.990000000000002
// Result from above SHOULD be 25.99
console.log( 16.1 - 9.89 ); // >6.210000000000001
// Result from above SHOULD be 6.21
var x = 16.1,
y = 9.89;
console.log( x + y ); // >25.990000000000002
// Result from above SHOULD be 25.99
var x = 16.1,
y = 9.79;
console.log( x + y ); // >25.89
// Result from above is properly 25.89
</CODE>
The above illustrates the anomalies in the results from basic addition.
This was produced in Google Chrome's Inspector console. Not sure what
version of V8 is running in it, but I am currently using version
26.0.1410.64m of Google Chrome.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.