Home
last modified time | relevance | path

Searched full:e (Results 1 – 25 of 2829) sorted by relevance

12345678910>>...114

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/math/Decimal/
DroundTests.ets54 checkRoundResult('0', '1e-9000000000000000', 4);
55 checkRoundResult('-0', '-1e-9000000000000000', 4);
56 checkRoundResult('9.999e+9000000000000000', '9.999e+9000000000000000', 4);
57 checkRoundResult('-9.999e+9000000000000000', '-9.999e+9000000000000000', 4);
59 …07425549768282761571350053022023236e+53', '6.88054606464877886407425549768282761571350053022023235…
60 …eckRoundResult('9.51833733815343753238388e+23', '9.51833733815343753238387581003146664685764843969…
61 …checkRoundResult('4.434086046379498022164479619323e+30', '4.4340860463794980221644796193222113345e
63 …7272459545727985864897598835e+51', '4.124227112152123941928547272459545727985864897598835272953583…
64 …341793502231565647729228272e+65', '4.6342995510235826244965144072205805013434179350223156564772922…
67 …985862257948987889309489e+76', '1.7570298541535900675839213008681546080805266237900369858622579489…
[all …]
DtoStringTests.ets63 t('1e-7', 0.0000001);
64 t('1.2e-7', 0.00000012);
65 t('1.23e-7', 0.000000123);
66 t('1e-8', 0.00000001);
67 t('1.2e-8', 0.000000012);
68 t('1.23e-8', 0.0000000123);
69 t('-1e-7', -0.0000001);
70 t('-1.2e-7', -0.00000012);
71 t('-1.23e-7', -0.000000123);
72 t('-1e-8', -0.00000001);
[all …]
DtoExponentialTests.ets44 arktest.assertEQ(new Decimal(1).toExponential(), '1e+0');
45 arktest.assertEQ(new Decimal(11).toExponential(), '1.1e+1');
46 arktest.assertEQ(new Decimal(112).toExponential(), '1.12e+2');
47 arktest.assertEQ(new Decimal(1).toExponential(0), '1e+0');
48 arktest.assertEQ(new Decimal(11).toExponential(0), '1e+1');
49 arktest.assertEQ(new Decimal(112).toExponential(0), '1e+2');
50 arktest.assertEQ(new Decimal(1).toExponential(1), '1.0e+0');
51 arktest.assertEQ(new Decimal(11).toExponential(1), '1.1e+1');
52 arktest.assertEQ(new Decimal(112).toExponential(1), '1.1e+2');
53 arktest.assertEQ(new Decimal(1).toExponential(2), '1.00e+0');
[all …]
DabsTests.ets49 arktest.assertEQ(new Decimal('-1e-5').abs().valueOf(), '0.00001');
78 arktest.assertEQ(new Decimal('-0.00000000009622').abs().valueOf(), '9.622e-11');
79 arktest.assertEQ(new Decimal('-0.000000000509').abs().valueOf(), '5.09e-10');
86 arktest.assertEQ(new Decimal('-0.00000000000000497898').abs().valueOf(), '4.97898e-15');
99 arktest.assertEQ(new Decimal('-5.2452468128e+1').abs().valueOf(), '5.2452468128e+1');
100 …est.assertEQ(new Decimal('1.41525905257189365008396e+16').abs().valueOf(), '1.41525905257189365008…
101 arktest.assertEQ(new Decimal('2.743068083928e+11').abs().valueOf(), '2.743068083928e+11');
102 …sertEQ(new Decimal('-1.52993064722314247378724599e+26').abs().valueOf(), '1.5299306472231424737872…
103 arktest.assertEQ(new Decimal('3.7205576746e+10').abs().valueOf(), '3.7205576746e+10');
104 arktest.assertEQ(new Decimal('-2.663e-10').abs().valueOf(),'2.663e-10');
[all …]
DcomparedToTests.ets110 arktest.assertEQ(new Decimal('657.342e-45').comparedTo(-I), 1);
154 arktest.assertEQ(new Decimal(1).comparedTo('1e-14'), 1);
155 arktest.assertEQ(new Decimal(1).comparedTo('3.345E-9'), 1);
156 arktest.assertEQ(new Decimal(1).comparedTo('-345.43e+4'), 1);
157 arktest.assertEQ(new Decimal(1).comparedTo('-94.12E+0'), 1);
881 arktest.assertEQ(new Decimal('-5.5239e+3').comparedTo('-2.2807805e+1'), -1);
882 arktest.assertEQ(new Decimal('8.554e+2').comparedTo('0e+0'), 1);
883 arktest.assertEQ(new Decimal('-2.1176736939e+5').comparedTo('2.13526332e+2'), -1);
884 arktest.assertEQ(new Decimal('2.528e-2').comparedTo('-1.5e-1'), 1);
885 arktest.assertEQ(new Decimal('-2.1536554e-2').comparedTo('-3.93e-6'), -1);
[all …]
DtoPrecisionTests.ets44 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(1), '1e+27');
45 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(2), '1.2e+27');
46 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(3), '1.23e+27');
47 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(4), '1.235e+27');
48 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(5), '1.2345e+27');
49 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(6), '1.23450e+27');
50 arktest.assertEQ(new Decimal('1.2345e+27').toPrecision(7), '1.234500e+27');
51 arktest.assertEQ(new Decimal('-1.2345e+27').toPrecision(1), '-1e+27');
52 arktest.assertEQ(new Decimal('-1.2345e+27').toPrecision(2), '-1.2e+27');
53 arktest.assertEQ(new Decimal('-1.2345e+27').toPrecision(3), '-1.23e+27');
[all …]
/arkcompiler/ets_runtime/test/moduletest/number/
Dexpect_output.txt16 1.12356e-4
18 1.1111111111111111e+21
33 -1.1111111111111111e+21
48 1e+0
49 1.1e+1
50 1.12e+2
51 1e-1
52 1.1e-1
53 1.12e-1
54 -1e+0
[all …]
/arkcompiler/ets_runtime/test/aottest/pgo_extrainfomap_expand/
Dpgo_extrainfomap_expand.ts17 set e(a1) {} method in C1
20 set e(a2) {} method in C2
23 set e(a3) {} method in C3
26 set e(a4) {} method in C4
29 set e(a5) {} method in C5
32 set e(a6) {} method in C6
35 set e(a7) {} method in C7
38 set e(a8) {} method in C8
41 set e(a9) {} method in C9
44 set e(a10) {} method in C10
[all …]
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2e=>{var t=Object.prototype.toString,r="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&… class
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Denum_indexing.ets16 enum E { a = 1, b = 2 };
18 let ill = E;
21 E[E.a];
22 (e: E.a) => E[e];
23 (e: E) => E[e];
26 E[1];
27 (e: E.a | E.b) => E[e];
28 (e: number) => E[e];
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/
DGLFrame.js37 function touchStart(e) { argument
38 document.addEventListener('contextmenu', function (e) { argument
39 e.preventDefault();
41 e.preventDefault();
44 e.touches[0].clientX,
45 e.touches[0].clientY
48 function touchMove(e) { argument
49 e.preventDefault();
52 e.touches[0].clientX,
53 e.touches[0].clientY
[all …]
/arkcompiler/runtime_core/static_core/verification/util/
Dsaturated_enum.h37 template <typename Enum, Enum E>
38 class SaturatedEnum<Enum, E> {
40 SaturatedEnum &operator=(Enum e)
42 value_ = e;
46 SaturatedEnum &operator|=(Enum e)
48 Set(e);
52 bool operator[](Enum e) const
54 return Check(e, false);
71 bool Check(Enum e, bool prevSet) const in Check() argument
73 bool Check([[maybe_unused]] Enum e, bool prevSet) const in Check()
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/enums/
Dtest-ts-enum-11.ts17 namespace E { namespace
18 export enum E { enum
20 E = 1, enumerator
22 B = (() => {enum E{
24 E = 3,
26 E_2 = E + 10,
29 } return E.C + 5;})(),
34 print(E.E.E);
35 print(E.E.E_2);
36 print(E.E.B);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/invalid_op_esvalue/ts_to_ets/
Dinvalid_op_esvalue_test.ets22 } catch (e: Error) {
23 res = e.message === 'Need object';
32 } catch (e: Error) {
33 res = e.message === 'Need object';
42 } catch (e: Error) {
43 res = e.message === 'Number expected';
52 } catch (e: Error) {
53 res = e.message === 'String expected';
62 } catch (e: Error) {
63 res = e.message === 'Need object';
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/compiler/
Dtest-ts-extremely-number-1.ts18 "numberval1": 1.79e+308,
19 "numberval2": 1.7976931348623158e+309,
20 "numberval3": 5e+320,
21 "numberval4": 2.225e-308,
22 "numberval5": 2.225e-309,
23 "numberval6": 3e-320,
24 "numberval7": 5e-324,
25 "numberval8": 5e-325,
26 "numberval9": 7e-350,
27 "numberval10": -1.79e+308,
[all …]
Dtest-ts-extremely-number-2.ts17 print(1.79e+308);
18 print(1.7976931348623158e+309);
19 print(5e+320);
20 print(2.225e-308);
21 print(2.225e-309);
22 print(3e-320);
23 print(5e-324);
24 print(5e-325);
25 print(7e-350);
27 print(-1.79e+308);
[all …]
Dtest-ts-extremely-number-2-expected.txt1 1.79e+308
4 2.225e-308
5 2.225e-309
6 3e-320
7 5e-324
10 -1.79e+308
13 -2.225e-308
14 -2.225e-309
15 -3e-320
16 -5e-324
/arkcompiler/ets_frontend/es2panda/test/compiler/crashStack/offColumn/js/
Doff-column-callthis.js33 } catch (e) {
34 print(e.message);
35 print(e.stack);
40 } catch (e) {
41 print(e.message);
42 print(e.stack);
46 } catch (e) {
47 print(e.message);
48 print(e.stack);
55 } catch (e) {
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/crashStack/enableColumn/js/
Denable-column-callthis.js33 } catch (e) {
34 print(e.message);
35 print(e.stack);
40 } catch (e) {
41 print(e.message);
42 print(e.stack);
46 } catch (e) {
47 print(e.message);
48 print(e.stack);
55 } catch (e) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/benchmarks/ani/
DREADME.txt25 BasicCall_baselineCallBench | 1.95e+03 | 1.61e+05 | 5.48e+04 | Passed |
26 BasicCall_criticalCallBench | 4.07e+00 | 1.61e+05 | 5.49e+04 | Passed |
27 BasicCall_fastStaticCallBench | 1.68e+03 | 1.61e+05 | 5.51e+04 | Passed |
28 BasicCall_finalCallBench | 3.25e+03 | 1.61e+05 | 5.49e+04 | Passed |
29 BasicCall_finalFastCallBench | 2.12e+03 | 1.61e+05 | 5.49e+04 | Passed |
30 BasicCall_nonStaticCallBench | 5.61e+03 | 1.61e+05 | 5.48e+04 | Passed |
31 BasicCall_nonStaticFastCallBench | 2.34e+03 | 1.61e+05 | 5.48e+04 | Passed |
32 BasicCall_staticCallBench | 2.67e+03 | 1.61e+05 | 5.49e+04 | Passed |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/03.floating_point_literals/
Dincorrect_float_literals.params.yaml17 - '0e'
18 - '0.0e'
19 - '0.0e+'
20 - '0.0e-'
21 - '0.0E'
22 - '0.0E+'
23 - '0.0E-'
25 - '.e'
26 - '.0e'
27 - '.0e+'
[all …]
/arkcompiler/ets_runtime/test/moduletest/asmstackoverflow/
Dasmstackoverflow.js28 } catch (e) {
29 assert_equal(e instanceof RangeError, true);
38 } catch (e) {
39 assert_equal(e instanceof RangeError, true);
48 } catch (e) {
49 assert_equal(e instanceof RangeError, true);
67 } catch (e) {
68 assert_equal(e instanceof RangeError, true);
77 } catch (e) {
78 assert_equal(e instanceof RangeError, true);
[all …]
/arkcompiler/ets_runtime/test/jittest/load_element_from_float64_array/
Dexpect_output.txt15 print(hide(-1.47688022616793e-310) % hide( -1.47688022616793e-310));
16 print(hide(-1.47688022616793e-310) >> hide( -1.47688022616793e-310));
17 print(hide(-1.47688022616793e-310) >>> hide( -1.47688022616793e-310));
18 print(hide(-1.47688022616793e-310) << hide( -1.47688022616793e-310));
19 print(hide(-1.47688022616793e-310) | hide( -1.47688022616793e-310));
20 print(hide(-1.47688022616793e-310) % hide( NaN));
21 print(hide(-1.47688022616793e-310) >> hide( NaN));
22 print(hide(-1.47688022616793e-310) >>> hide( NaN));
23 print(hide(-1.47688022616793e-310) << hide( NaN));
24 print(hide(-1.47688022616793e-310) | hide( NaN));
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Djson-parser-expected.txt36 1.79e+308 1.79e+308
39 2.225e-308 2.225e-308
40 2.225e-309 2.225e-309
41 3e-320 3e-320
42 5e-324 5e-324
45 2.225e-308
46 2.225e-309
47 3e-320
48 5e-324
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Denum_as_expression_cast.ets16 enum E {
22 assertEQ(E.A.toString(), "100") // E.A.toString()
23 assertEQ(E.A as int, 100) // cast(E.A) to int, E.A is a index
24 assertEQ(E.B.toString(), "200") // E.B.toString()
25 assertEQ(Int.toDouble(E.B), 200) // cast(E.B) to number, E.B is a index
26 assertEQ(E.A.valueOf() as int, 100) // get value of E.A
27 assertEQ(Int.toDouble(E.B.valueOf()), 200) // get value of E.B

12345678910>>...114