Home
last modified time | relevance | path

Searched refs:toPrecision (Results 1 - 14 of 14) sorted by relevance

/third_party/jerryscript/tests/jerry/
H A Dnumber-prototype-to-precision.js17 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 DtoPrecision.js3 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 Dimmutability.js489 a.toPrecision(n);
/third_party/typescript/tests/baselines/reference/
H A DfunctionExpressionShadowedByParams.js3 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 DcontrolFlowInstanceOfGuardPrimitives.js8 console.log("Aha!! It's the number " + thing.toPrecision(3));
25 console.log("Aha!! It's the number " + thing.toPrecision(3));
H A DoperatorsAndIntersectionTypes.js25 const s5 = serialNo.toPrecision(0);
51 var s5 = serialNo.toPrecision(0);
H A DassignFromNumberInterface2.js10 toPrecision(precision?: number): string;
H A DmappedTypes1.js143 toPrecision: void;
/third_party/jerryscript/tests/jerry/fail/
H A Dregression-test-issue-3173.js16 var a = d.toPrecision(c);
/third_party/jerryscript/tests/jerry/es2015/
H A Dregression-test-issue-2724.js17 Object.defineProperty( obj, 'length', { 'get' : function(toPrecision) { return Object.create(/x/); }});
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
H A DvktShaderIntegerFunctionTests.cpp210 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 Des31fShaderIntegerFunctionTests.cpp1004 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 DvktShaderIntegerFunctionTests.cpp210 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 Ddecimal.js22 // `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,

Completed in 17 milliseconds