Debian Codegraph @

rhino/testsrc/doctests/number.tostring.doctest

raw
1 // This Source Code Form is subject to the terms of the Mozilla Public
2 // License, v. 2.0. If a copy of the MPL was not distributed with this
3 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 js> 10000000000000000000000
6 1e+22
7 js> 100000000000000000000001
8 1.0000000000000001e+23
9 js> 1000000000000000000000001
10 1e+24
11 js> -10000000000000000000000
12 -1e+22
13 js> -100000000000000000000001
14 -1.0000000000000001e+23
15 js> -1000000000000000000000001
16 -1e+24
17 js> 0.1
18 0.1
19 js> -0.1
20 -0.1
21 js> 0.00001
22 0.00001
23 js> -0.00001
24 -0.00001
25 js> 0.000001
26 0.000001
27 js> -0.000001
28 -0.000001
29 js> 0.0000001
30 1e-7
31 js> -0.0000001
32 -1e-7
33 js> -0.0000000000000001
34 -1e-16
35 js> 0.0000000000000001
36 1e-16
37 js> 0.00000000000000000000000001
38 1e-26
39 js> -0.00000000000000000000000001
40 -1e-26