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.
16 lines
301 B
16 lines
301 B
/*===
|
|
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);
|
|
}
|
|
|