swc/crates/swc_ecma_codegen/tests/fixture/number/input.js

64 lines
1.4 KiB
JavaScript
Raw Normal View History

const exp = 1000;
const Exp = 1000000000000;
const negativeExp = 0.00000001;
const huge = 1000000000001;
const big = 100000000001;
const fractional = 100.2300200;
const numeric_separators = 1_000_000_000_000;
const one = 1_000;
const two = 1_000_000;
const three = -1_000_000;
const bin = 0b0101_0101;
const oct = 0o0123_4567;
const hex = 0xDEAD_BEEF;
const fractional2 = 1_000.000_100;
const identifier = _1000;
const negate_identifier = -_1000;
const foo = 0.1;
const foo1 = +0.1;
const foo2 = -0.1;
const foo3 = 1050;
const foo4 = 100500;
const foo5 = 10005000;
const foo6 = 1000050000;
const foo7 = 0.1;
const foo8 = 0.01;
const foo9 = 0.001;
const foo10 = 0.0001;
const foo11 = 0.00001;
const foo12 = 0.000001;
const foo13 = 0.000024;
const foo14 = -0.000024;
const foo15 = 1e1;
const foo16 = 1e2;
const foo17 = 1e3;
const foo18 = 1e4;
const foo19 = 1e5;
const foo20 = 1e-1;
const foo21 = 1e-2;
const foo22 = 1e-3;
const foo23 = 1e-4;
const foo24 = 1e-5;
const foo25 = -1e-1;
const foo26 = -1e-2;
const foo27 = -1e-3;
const foo28 = -1e-4;
const foo29 = -1e-5;
const foo30 = 100e-5;
const foo31 = 321e-5;
const foo32 = 321e-6;
const foo33 = 1E-1;
const foo34 = 1E-5;
const foo35 = 000000;
const foo36 = -000000;
const foo37 = +000000;
const foo38 = 0.00001543;
const foo39 = 0.00001543000;
const foo40 = (0.00001543000);
const foo41 = { 1000050000: "foo" };
const foo42 = 1000000003242;
const foo43 = -1000000003242;
const foo43 = 0.0;
const foo44 = -0.0;
const foo45 = +0.0;