/third_party/jerryscript/tests/jerry/ |
D | number-prototype-to-precision.js | 17 assert((123.56).toPrecision() === "123.56"); 18 assert((123.56).toPrecision(1) === "1e+2"); 19 assert((123.56).toPrecision(2) === "1.2e+2"); 20 assert((123.56).toPrecision(6) === "123.560"); 21 assert((-1.23).toPrecision(1) === "-1"); 22 assert((0.00023).toPrecision(1) === "0.0002"); 23 assert((0.356).toPrecision(2) === "0.36"); 24 assert((0.0000356).toPrecision(5) === "0.000035600"); 25 assert((0.000030056).toPrecision(4) === "0.00003006"); 26 assert(Infinity.toPrecision(1) === "Infinity"); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | functionExpressionShadowedByParams.symbols | 6 b1.toPrecision(2); // should not error 7 >b1.toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --)) 9 >toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --)) 24 b.toPrecision(2); // should not error 25 >b.toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --)) 27 >toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --))
|
D | functionExpressionShadowedByParams.types | 6 b1.toPrecision(2); // should not error 7 >b1.toPrecision(2) : string 8 >b1.toPrecision : (precision?: number) => string 10 >toPrecision : (precision?: number) => string 22 >{ b: function b(b: number) { b.toPrecision(2); // should not error b.apply(null, null)… 26 >function b(b: number) { b.toPrecision(2); // should not error b.apply(null, null); // sh… 30 b.toPrecision(2); // should not error 31 >b.toPrecision(2) : string 32 >b.toPrecision : (precision?: number) => string 34 >toPrecision : (precision?: number) => string
|
D | functionExpressionShadowedByParams.js | 3 b1.toPrecision(2); // should not error 10 b.toPrecision(2); // should not error 18 b1.toPrecision(2); // should not error 23 b.toPrecision(2); // should not error
|
D | controlFlowInstanceOfGuardPrimitives.types | 41 console.log("Aha!! It's the number " + thing.toPrecision(3)); 42 >console.log("Aha!! It's the number " + thing.toPrecision(3)) : void 46 >"Aha!! It's the number " + thing.toPrecision(3) : string 48 >thing.toPrecision(3) : string 49 >thing.toPrecision : (precision?: number) => string 51 >toPrecision : (precision?: number) => string
|
D | controlFlowInstanceOfGuardPrimitives.symbols | 31 console.log("Aha!! It's the number " + thing.toPrecision(3)); 35 >thing.toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --)) 37 >toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --))
|
D | operatorsAndIntersectionTypes.symbols | 68 const s5 = serialNo.toPrecision(0); 70 >serialNo.toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --)) 72 >toPrecision : Symbol(Number.toPrecision, Decl(lib.es5.d.ts, --, --))
|
D | operatorsAndIntersectionTypes.types | 87 const s5 = serialNo.toPrecision(0); 89 >serialNo.toPrecision(0) : string 90 >serialNo.toPrecision : (precision?: number) => string 92 >toPrecision : (precision?: number) => string
|
D | mappedTypeRecursiveInference.errors.txt | 1 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo… 2 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo… 26 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo… 28 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo…
|
D | controlFlowInstanceOfGuardPrimitives.js | 8 console.log("Aha!! It's the number " + thing.toPrecision(3)); 25 console.log("Aha!! It's the number " + thing.toPrecision(3));
|
D | functionExpressionShadowedByParams.errors.txt | 8 b1.toPrecision(2); // should not error 18 b.toPrecision(2); // should not error
|
D | assignFromNumberInterface2.symbols | 24 toPrecision(precision?: number): string; 25 >toPrecision : Symbol(NotNumber.toPrecision, Decl(assignFromNumberInterface2.ts, 7, 51))
|
D | operatorsAndIntersectionTypes.js | 25 const s5 = serialNo.toPrecision(0); 51 var s5 = serialNo.toPrecision(0);
|
D | assignFromNumberInterface2.types | 20 toPrecision(precision?: number): string; 21 >toPrecision : (precision?: number) => string
|
D | assignFromNumberInterface2.js | 10 toPrecision(precision?: number): string;
|
D | mappedTypes1.types | 107 >x4 : { toString: void; toFixed: void; toExponential: void; toPrecision: void; valueOf: void; toLoc… 108 >f4() : { toString: void; toFixed: void; toExponential: void; toPrecision: void; valueOf: void; toL…
|
D | mappedTypeRecursiveInference.types | 94 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo… 95 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo… 100 …toPrecision: any; valueOf: any; toLocaleString: any; }; nodeValue: { toString: any; charAt: any; c… 101 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo… 102 …toPrecision: any; valueOf: any; toLocaleString: any; }; nodeValue: { toString: any; charAt: any; c… 105 …ength : { toString: unknown; toFixed: unknown; toExponential: unknown; toPrecision: unknown; value… 106 …n; readonly length: { toString: any; toFixed: any; toExponential: any; toPrecision: any; valueOf: … 107 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly clientLeft: { toString: any; toFi… 108 …toPrecision: any; valueOf: any; toLocaleString: any; }; nodeValue: { toString: any; charAt: any; c… 109 …toPrecision: any; valueOf: any; toLocaleString: any; }; readonly response: unknown; readonly respo… [all …]
|
D | assignFromNumberInterface2.errors.txt | 15 toPrecision(precision?: number): string;
|
/third_party/quickjs/tests/ |
D | test_bignum.js | 216 assert((1234.125l).toPrecision(6), "1234.13"); 217 assert((1234.125l).toPrecision(6, BigFloatEnv.RNDZ), "1234.12"); 230 assert((0x123.438l).toPrecision(5, BigFloatEnv.RNDNA, 16), "123.44"); 231 assert((0x123.438l).toPrecision(5, BigFloatEnv.RNDZ, 16), "123.43"); 232 assert((0x323.438l).toPrecision(5, BigFloatEnv.RNDNA, 16), "323.44"); 233 assert((0x723.438l).toPrecision(5, BigFloatEnv.RNDNA, 16), "723.44"); 234 assert((-0xf23.438l).toPrecision(5, BigFloatEnv.RNDD, 16), "-f23.44"); 317 assert((1234.125m).toPrecision(6), "1234.13"); 318 assert((1234.125m).toPrecision(6, "down"), "1234.12"); 319 assert((-1234.125m).toPrecision(6, "floor"), "-1234.13");
|
/third_party/typescript/tests/cases/compiler/ |
D | functionExpressionShadowedByParams.ts | 2 b1.toPrecision(2); // should not error 9 b.toPrecision(2); // should not error
|
/third_party/jerryscript/tests/jerry/fail/ |
D | regression-test-issue-3173.js | 16 var a = d.toPrecision(c);
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | regression-test-issue-2724.js | 17 …Object.defineProperty( obj, 'length', { 'get' : function(toPrecision) { return Object.create(/x/);… argument
|
/third_party/typescript/tests/cases/conformance/controlFlow/ |
D | controlFlowInstanceOfGuardPrimitives.ts | 7 console.log("Aha!! It's the number " + thing.toPrecision(3));
|
/third_party/typescript/tests/cases/conformance/types/primitives/number/ |
D | assignFromNumberInterface2.ts | 9 toPrecision(precision?: number): string; method
|
/third_party/typescript/tests/cases/conformance/types/intersection/ |
D | operatorsAndIntersectionTypes.ts | 24 const s5 = serialNo.toPrecision(0);
|