mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
407 B
22 lines
407 B
/*---
|
|
{
|
|
"knownissue": "rounding corner case, 1e+23 string coerces to 1.0000000000000001e+23"
|
|
}
|
|
---*/
|
|
|
|
/*===
|
|
1e+23
|
|
===*/
|
|
|
|
function miscTest() {
|
|
// Burger, Dybvig: "Printing Floating-Point Numbers Quickly
|
|
// and Accurately", section 3.1. IEEE round-to-even allows
|
|
// this to be printed as "1e+23" instead of "9.999...".
|
|
print(1e23);
|
|
}
|
|
|
|
try {
|
|
miscTest();
|
|
} catch (e) {
|
|
print(e);
|
|
}
|
|
|