Sign in
webkit
/
WebKit
/
57b40c420b18a382c5831490354fc98d6882db7d
/
.
/
JSTests
/
microbenchmarks
/
fround.js
blob: 22c5c08593badb782b9e2c60bc5bd7940ba60a6d [
file
] [
log
] [
blame
]
(
function
()
{
var
x
=
Math
.
fround
(
42.5
);
for
(
var
i
=
0
;
i
<
3000000
;
++
i
)
x
=
Math
.
fround
(
Math
.
fround
(
Math
.
fround
(
i
+
0.5
)
*
2.1353562
)
+
x
);
if
(
x
!=
9609154658304
)
throw
"Error: bad result: "
+
x
;
})();