summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/mathRoundBig.js
blob: e01ffa4f54575168bc5e8ff19d28c5bc93308b04 (plain)
1
2
3
4
5
6
7
8
9
10
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

assertEq(Math.round(9007199254740991), 9007199254740991);
assertEq(Math.round(-19007199254740990), -19007199254740990);

assertEq(Math.round("9007199254740991"), 9007199254740991);
assertEq(Math.round("-19007199254740990"), -19007199254740990);