/third_party/jerryscript/tests/jerry/ |
H A 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( [all...] |
/third_party/decimal.js/test/modules/ |
H A D | toPrecision.js | 3 T('toPrecision', function () { 6 T.assertEqual(expected, new Decimal(n).toPrecision(sd, rm)); 511 tx(function () {new Decimal(1.23).toPrecision('3')}, "(1.23).toPrecision('3')"); 512 tx(function () {new Decimal(1.23).toPrecision(new Decimal(3))}, "(1.23).toPrecision(new Decimal(3))"); 513 tx(function () {new Decimal(1.23).toPrecision(null)}, "(1.23).toPrecision(null)"); 514 tx(function () {new Decimal(1.23).toPrecision(NaN)}, "(1.23).toPrecision(Na [all...] |
H A D | immutability.js | 489 a.toPrecision(n);
|
/third_party/typescript/tests/baselines/reference/ |
H A 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
|
H A 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));
|
H A D | operatorsAndIntersectionTypes.js | 25 const s5 = serialNo.toPrecision(0); 51 var s5 = serialNo.toPrecision(0);
|
H A D | assignFromNumberInterface2.js | 10 toPrecision(precision?: number): string;
|
H A D | mappedTypes1.js | 143 toPrecision: void;
|
/third_party/jerryscript/tests/jerry/fail/ |
H A D | regression-test-issue-3173.js | 16 var a = d.toPrecision(c);
|
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | regression-test-issue-2724.js | 17 Object.defineProperty( obj, 'length', { 'get' : function(toPrecision) { return Object.create(/x/); }});
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
H A D | vktShaderIntegerFunctionTests.cpp | 210 static deUint32 toPrecision (deUint32 value, int numIntegerBits) in toPrecision() function 215 static deInt32 toPrecision (deInt32 value, int numIntegerBits) in toPrecision() function 1206 const int minRef = isSigned ? de::findMSB(toPrecision(deInt32(value), integerLength)) : de::findMSB(toPrecision(value, integerLength)); in compare()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fShaderIntegerFunctionTests.cpp | 1004 static deUint32 toPrecision (deUint32 value, int numIntegerBits) in toPrecision() function 1009 static deInt32 toPrecision (deInt32 value, int numIntegerBits) in toPrecision() function 1050 const int minRef = isSigned ? de::findMSB(toPrecision(deInt32(value), integerLength)) : de::findMSB(toPrecision(value, integerLength)); in compare()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
H A D | vktShaderIntegerFunctionTests.cpp | 210 static deUint32 toPrecision (deUint32 value, int numIntegerBits) in toPrecision() function 215 static deInt32 toPrecision (deInt32 value, int numIntegerBits) in toPrecision() function 1206 const int minRef = isSigned ? de::findMSB(toPrecision(deInt32(value), integerLength)) : de::findMSB(toPrecision(value, integerLength)); in compare()
|
/third_party/decimal.js/ |
H A D | decimal.js | 22 // `toDecimalPlaces`, `toExponential`, `toFixed`, `toPrecision` and `toSignificantDigits`. 188 * toPrecision 2379 P.toPrecision = function (sd, rm) { 2478 * P.toPrecision, P.toSignificantDigits, toStringBinary, random 2490 * P.toNearest, P.toPower, P.toPrecision, P.toSignificantDigits, 2493 * finiteToString P.toExponential, P.toFixed, P.toPrecision, P.toString, P.valueOf,
|