Home
last modified time | relevance | path

Searched refs:doubleValue (Results 1 – 25 of 108) sorted by relevance

12345

/third_party/protobuf/js/experimental/runtime/kernel/
Ddouble_test_pairs.js19 doubleValue: 0, property
25 doubleValue: -0, property
31 doubleValue: 1, property
37 doubleValue: -1, property
44 doubleValue: Math.PI, property
51 doubleValue: Number.MAX_VALUE, property
57 doubleValue: Number.MIN_VALUE, property
63 doubleValue: Infinity, property
69 doubleValue: -Infinity, property
75 doubleValue: Number.MAX_SAFE_INTEGER, property
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DUnitsTest.java78 expected[i].getNumber().doubleValue(),
79 measure.getNumber().doubleValue(), accuracy);
242 testCase.expectedMeasures[i].getNumber().doubleValue(),
243 actualMeasures.get(i).getNumber().doubleValue(),
355 double maxDelta = 1e-6 * Math.abs(test.expected.conversionRate.doubleValue());
356 if (test.expected.conversionRate.doubleValue() == 0) {
360 test.expected.conversionRate.doubleValue(), actual.conversionRate.doubleValue(),
364 maxDelta = 1e-6 * Math.abs(test.expected.offset.doubleValue());
365 if (test.expected.offset.doubleValue() == 0) {
369 test.expected.offset.doubleValue(), actual.offset.doubleValue(),
[all …]
/third_party/node/deps/v8/tools/tracing/proto-converter/
Dproto-to-json.ts56 if (typeof arg.doubleValue !== 'undefined') {
58 return typeof arg.doubleValue === 'string' ?
59 arg.doubleValue : Number(arg.doubleValue);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMeasure.java80 if (a.doubleValue() == b.doubleValue()) { in numbersEqual()
93 return 31 * Double.valueOf(number.doubleValue()).hashCode() + unit.hashCode(); in hashCode()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DMeasure.java78 if (a.doubleValue() == b.doubleValue()) { in numbersEqual()
90 return 31 * Double.valueOf(number.doubleValue()).hashCode() + unit.hashCode(); in hashCode()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatRegressionTest.java288 if (expected[i] != n.doubleValue()) { in TestT5698()
290 + n.doubleValue() + " / expected: " + expected[i]); in TestT5698()
317 if (expected[i] != n.doubleValue()) { in TestSurrogatesParsing()
319 + n.doubleValue() + " / expected: " + expected[i]); in TestSurrogatesParsing()
332 aNumber = nf.parse(myString).doubleValue(); in checkNBSPPatternRtNum()
DNumberFormatRoundTripTest.java162 s = fmt.format(value.doubleValue()); in _test()
181 s2 = fmt.format(n.doubleValue()); in _test()
226 aa = a.doubleValue(); in proportionalError()
231 bb = b.doubleValue(); in proportionalError()
DNumberRegressionTests.java286 errln("Result -> " + d.doubleValue()); in Test4068693()
398 if (d2.doubleValue() != d1.doubleValue()) in Test4095713()
399 errln("Bug 4095713 test failed, new double value : " + d2.doubleValue()); in Test4095713()
415 …g 4092561 test failed when multiplier is set to not 1.", -9.223372036854776E16, num.doubleValue()); in Test4092561()
1230 double val = nf.parse(out).doubleValue(); in Test4145457()
1235 double val2 = nf.parse(out2).doubleValue(); in Test4145457()
1324 assertEquals("Round trip failure", dbl, n.doubleValue()); in Test4162198()
1337 double e = f.parse(s).doubleValue(); in Test4162852()
1357 double b = fmt.parse(s).doubleValue(); in Test4167494()
1372 b = fmt.parse(s).doubleValue(); in Test4167494()
[all …]
DIntlTestNumberFormatAPI.java125 double d1 = ((Number)fr.parseObject(text, pos)).doubleValue(); in TestAPI()
131 double d2 = fr.parse(text, pos01).doubleValue(); in TestAPI()
139 d3 = fr.parse(text).doubleValue(); in TestAPI()
DNumberFormatTest.java208 double value = parser.parse("-0,5").doubleValue(); in TestParseNegativeWithFaLocale()
219 double value = parser.parse("\u208B0.5").doubleValue(); in TestParseNegativeWithAlternativeMinusSign()
338 double a = fmt.parse(s, pos).doubleValue(); in TestExponential()
476 result.doubleValue() != 124) { in TestSpaceParsing()
477 errln("FAILED parse " + stringToBeParsed + "; value " + result.doubleValue()); in TestSpaceParsing()
575 if (fmt.parse(oneCurrencyFormat).doubleValue() != in TestMultiCurrencySign()
576 numberToBeFormat.doubleValue()) { in TestMultiCurrencySign()
667 if (num.doubleValue() != parsedResult) { in TestDecimalFormatCurrencyParse()
823 if (val.getNumber().doubleValue() != numberToBeFormat.doubleValue()) { in TestCurrencyIsoPluralFormat()
859 val.doubleValue() != 1.00) { in TestMiscCurrencyParsing()
[all …]
DNumberFormatDataDrivenTest.java53 if (!Double.isNaN(actual.doubleValue())) { in compareParseResult()
58 if (!Double.isInfinite(actual.doubleValue()) in compareParseResult()
59 || Double.compare(actual.doubleValue(), 0.0) < 0) { in compareParseResult()
64 if (!Double.isInfinite(actual.doubleValue()) in compareParseResult()
65 || Double.compare(actual.doubleValue(), 0.0) > 0) { in compareParseResult()
222 fmt.setRoundingIncrement(tuple.roundingIncrement.doubleValue());
DRbnfTest.java773 if (1000 != (result = ruFormatter.parse(ruFormatter.format(1000))).doubleValue()) { in TestMultiplePluralRules()
776 …Formatter.parse(ruFormatter.format(1000, "%spellout-cardinal-feminine-genitive"))).doubleValue()) { in TestMultiplePluralRules()
779 …sult = ruFormatter.parse(ruFormatter.format(1000, "%spellout-cardinal-feminine"))).doubleValue()) { in TestMultiplePluralRules()
1219 if (n != num.doubleValue()) { in TestAllLocales()
1294 if (expectedNumber.doubleValue() != num.doubleValue()) { in doParsingTest()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DNumberFormatRegressionTest.java291 if (expected[i] != n.doubleValue()) { in TestT5698()
293 + n.doubleValue() + " / expected: " + expected[i]); in TestT5698()
320 if (expected[i] != n.doubleValue()) { in TestSurrogatesParsing()
322 + n.doubleValue() + " / expected: " + expected[i]); in TestSurrogatesParsing()
335 aNumber = nf.parse(myString).doubleValue(); in checkNBSPPatternRtNum()
DNumberFormatRoundTripTest.java165 s = fmt.format(value.doubleValue()); in _test()
184 s2 = fmt.format(n.doubleValue()); in _test()
229 aa = a.doubleValue(); in proportionalError()
234 bb = b.doubleValue(); in proportionalError()
DNumberRegressionTests.java289 errln("Result -> " + d.doubleValue()); in Test4068693()
401 if (d2.doubleValue() != d1.doubleValue()) in Test4095713()
402 errln("Bug 4095713 test failed, new double value : " + d2.doubleValue()); in Test4095713()
418 …g 4092561 test failed when multiplier is set to not 1.", -9.223372036854776E16, num.doubleValue()); in Test4092561()
1233 double val = nf.parse(out).doubleValue(); in Test4145457()
1238 double val2 = nf.parse(out2).doubleValue(); in Test4145457()
1327 assertEquals("Round trip failure", dbl, n.doubleValue()); in Test4162198()
1340 double e = f.parse(s).doubleValue(); in Test4162852()
1360 double b = fmt.parse(s).doubleValue(); in Test4167494()
1375 b = fmt.parse(s).doubleValue(); in Test4167494()
[all …]
DIntlTestNumberFormatAPI.java128 double d1 = ((Number)fr.parseObject(text, pos)).doubleValue(); in TestAPI()
134 double d2 = fr.parse(text, pos01).doubleValue(); in TestAPI()
142 d3 = fr.parse(text).doubleValue(); in TestAPI()
DNumberFormatDataDrivenTest.java56 if (!Double.isNaN(actual.doubleValue())) { in compareParseResult()
61 if (!Double.isInfinite(actual.doubleValue()) in compareParseResult()
62 || Double.compare(actual.doubleValue(), 0.0) < 0) { in compareParseResult()
67 if (!Double.isInfinite(actual.doubleValue()) in compareParseResult()
68 || Double.compare(actual.doubleValue(), 0.0) > 0) { in compareParseResult()
225 fmt.setRoundingIncrement(tuple.roundingIncrement.doubleValue());
DNumberFormatTest.java211 double value = parser.parse("-0,5").doubleValue(); in TestParseNegativeWithFaLocale()
222 double value = parser.parse("\u208B0.5").doubleValue(); in TestParseNegativeWithAlternativeMinusSign()
341 double a = fmt.parse(s, pos).doubleValue(); in TestExponential()
479 result.doubleValue() != 124) { in TestSpaceParsing()
480 errln("FAILED parse " + stringToBeParsed + "; value " + result.doubleValue()); in TestSpaceParsing()
578 if (fmt.parse(oneCurrencyFormat).doubleValue() != in TestMultiCurrencySign()
579 numberToBeFormat.doubleValue()) { in TestMultiCurrencySign()
670 if (num.doubleValue() != parsedResult) { in TestDecimalFormatCurrencyParse()
826 if (val.getNumber().doubleValue() != numberToBeFormat.doubleValue()) { in TestCurrencyIsoPluralFormat()
862 val.doubleValue() != 1.00) { in TestMiscCurrencyParsing()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberParserTest.java160 resultObject.getNumber().doubleValue(), in testBasic()
174 resultObject.getNumber().doubleValue(), in testBasic()
191 resultObject.getNumber().doubleValue(), in testBasic()
206 assertEquals(Double.NaN, resultObject.getNumber().doubleValue(), 0.0); in testLocaleFi()
211 assertEquals(1200.0, resultObject.getNumber().doubleValue(), 0.0); in testLocaleFi()
361 result.getNumber().doubleValue(), in testGroupingDisabled()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberParserTest.java157 resultObject.getNumber().doubleValue(), in testBasic()
171 resultObject.getNumber().doubleValue(), in testBasic()
188 resultObject.getNumber().doubleValue(), in testBasic()
203 assertEquals(Double.NaN, resultObject.getNumber().doubleValue(), 0.0); in testLocaleFi()
208 assertEquals(1200.0, resultObject.getNumber().doubleValue(), 0.0); in testLocaleFi()
358 result.getNumber().doubleValue(), in testGroupingDisabled()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcParallelShaderCompileTests.cpp98 GLdouble doubleValue; in iterate() local
120 gl.getDoublev(GL_MAX_SHADER_COMPILER_THREADS_KHR, &doubleValue); in iterate()
125 …portsInt64 && intValue != (GLint)int64Value) || (supportsDouble && intValue != (GLint)doubleValue)) in iterate()
139 message << ", double(" << doubleValue << ")"; in iterate()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfDemo.java119 … theNumber = new BigDecimal(temp instanceof Long ? temp.longValue() : temp.doubleValue()); in createDemoFrame()
121 … theNumber.scale() == 0 ? theNumber.longValue() : theNumber.doubleValue(), ruleSetName)); in createDemoFrame()
147 .doubleValue()); in createDemoFrame()
172 .doubleValue()); in createDemoFrame()
248 … .format(theNumber.scale() == 0 ? theNumber.longValue() : theNumber.doubleValue(), ruleSetName)); in createDemoFrame()
418 … .format(theNumber.scale() == 0 ? theNumber.longValue() : theNumber.doubleValue(), ruleSetName)); in redisplay()
/third_party/icu/icu4c/source/io/
Duprntf_p.cpp284 double num = (double) (args[0].doubleValue); in u_printf_double_handler()
567 double num = (double) (args[0].doubleValue); in u_printf_scientific_handler()
687 double num = (double) (args[0].doubleValue); in u_printf_percent_handler()
813 double num = args[0].doubleValue; in u_printf_scidbl_handler()
890 double num = (double) (args[0].doubleValue); in u_printf_spellout_handler()
1205 arglist[pos].doubleValue = va_arg(ap, double); in parseArguments()
1541 args.doubleValue = arglist[spec.fArgPos].doubleValue; in u_printf_parse()
1574 args.doubleValue = va_arg(ap, double); in u_printf_parse()
/third_party/skia/third_party/externals/icu/source/io/
Duprntf_p.cpp284 double num = (double) (args[0].doubleValue); in u_printf_double_handler()
567 double num = (double) (args[0].doubleValue); in u_printf_scientific_handler()
687 double num = (double) (args[0].doubleValue); in u_printf_percent_handler()
813 double num = args[0].doubleValue; in u_printf_scidbl_handler()
890 double num = (double) (args[0].doubleValue); in u_printf_spellout_handler()
1205 arglist[pos].doubleValue = va_arg(ap, double); in parseArguments()
1541 args.doubleValue = arglist[spec.fArgPos].doubleValue; in u_printf_parse()
1574 args.doubleValue = va_arg(ap, double); in u_printf_parse()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/
DNumberFormatterFactory.java115 result = realFormatter.format(((Number) toFormat).doubleValue() - offset); in format()
124 result = realFormatter.format(nrValue.doubleValue() - offset); in format()

12345