Home
last modified time | relevance | path

Searched refs:asDouble (Results 1 – 25 of 48) sorted by relevance

12

/external/smali/dexlib2/src/main/java/org/jf/util/
DNumberUtils.java124 String asDouble = format.format(doubleValue); in isLikelyDouble() local
127 int decimalPoint = asDouble.indexOf('.'); in isLikelyDouble()
128 int exponent = asDouble.indexOf("E"); in isLikelyDouble()
129 int zeros = asDouble.indexOf("000"); in isLikelyDouble()
131 asDouble = asDouble.substring(0, zeros) + asDouble.substring(exponent); in isLikelyDouble()
133 int nines = asDouble.indexOf("999"); in isLikelyDouble()
135 asDouble = asDouble.substring(0, nines) + asDouble.substring(exponent); in isLikelyDouble()
139 return asDouble.length() < asLong.length(); in isLikelyDouble()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DLiteralStringValueExprTest.java64 assertThat(new DoubleLiteralExpr("0.0f").asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
65 assertThat(new DoubleLiteralExpr("0.0F").asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
66 assertThat(new DoubleLiteralExpr("0.0d").asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
67 assertThat(new DoubleLiteralExpr("0.0D").asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
68 assertThat(new DoubleLiteralExpr(0.0F).asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
69 assertThat(new DoubleLiteralExpr(0.0f).asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
70 assertThat(new DoubleLiteralExpr(0.0D).asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
71 assertThat(new DoubleLiteralExpr(0.0d).asDouble()).isEqualTo(0.0); in trivialLiteralsAreConverted()
146 assertThat(posFloat.asDouble()).isCloseTo(3.4028235e38f, Percentage.withPercentage(1)); in lowerAndUpperBoundDoublesAreConverted()
147 assertThat(negFloat.asDouble()).isCloseTo(1.40e-45f, Percentage.withPercentage(1)); in lowerAndUpperBoundDoublesAreConverted()
[all …]
DDoubleLiteralExprTest.java13 Assertions.assertEquals(x, e.asDouble()); in test1()
20 Assertions.assertEquals(x, e.asDouble()); in test2()
27 Assertions.assertEquals(a, e.asDouble()); in test3()
34 Assertions.assertEquals(a, e.asDouble()); in test4()
41 Assertions.assertEquals(x, e.asDouble()); in test5()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DNodeTestBase.java16 assertEquals(0.0, n.asDouble()); in assertNodeNumbersForNonNumeric()
17 assertEquals(-19.25, n.asDouble(-19.25)); in assertNodeNumbersForNonNumeric()
26 assertEquals(expDouble, n.asDouble()); in assertNodeNumbers()
27 assertEquals(expDouble, n.asDouble(-19.25)); in assertNodeNumbers()
DTestMissingNode.java28 assertEquals(0.25, n.asDouble(0.25)); in testMissing()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp14218 const double d (x.asDouble()); in calc()
14242 const double d (x.asDouble()); in calc()
14267 const double d (x.asDouble()); in calc()
14284 const double d (x.asDouble()); in calc()
14301 const double d (x.asDouble()); in calc()
14318 const double d (x.asDouble()); in calc()
14338 const double d (x.asDouble()); in calc()
14355 const double d (x.asDouble()); in calc()
14372 const double d (x.asDouble()); in calc()
14437 const double d (x.asDouble()); in calc()
[all …]
/external/turbine/java/com/google/turbine/binder/
DConstEvaluator.java351 return value.asDouble(); in coerce()
424 return new Const.DoubleValue(+expr.asDouble().value()); in unaryPlus()
440 return new Const.DoubleValue(-expr.asDouble().value()); in unaryMinus()
485 return new Const.DoubleValue(a.asDouble().value() + b.asDouble().value()); in add()
503 return new Const.DoubleValue(a.asDouble().value() - b.asDouble().value()); in subtract()
521 return new Const.DoubleValue(a.asDouble().value() * b.asDouble().value()); in mult()
539 return new Const.DoubleValue(a.asDouble().value() / b.asDouble().value()); in divide()
557 return new Const.DoubleValue(a.asDouble().value() % b.asDouble().value()); in mod()
622 return new Const.BooleanValue(a.asDouble().value() < b.asDouble().value()); in lessThan()
640 return new Const.BooleanValue(a.asDouble().value() <= b.asDouble().value()); in lessThanEqual()
[all …]
/external/turbine/java/com/google/turbine/model/
DConst.java76 public DoubleValue asDouble() { in asDouble() method in Const.Value
217 public DoubleValue asDouble() { in asDouble() method in Const.IntValue
300 public DoubleValue asDouble() { in asDouble() method in Const.LongValue
383 public DoubleValue asDouble() { in asDouble() method in Const.CharValue
469 public DoubleValue asDouble() { in asDouble() method in Const.FloatValue
561 public DoubleValue asDouble() { in asDouble() method in Const.DoubleValue
692 public DoubleValue asDouble() { in asDouble() method in Const.ShortValue
766 public DoubleValue asDouble() { in asDouble() method in Const.ByteValue
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/
DNumericNode.java69 public final double asDouble() { in asDouble() method in NumericNode
74 public final double asDouble(double defaultValue) { in asDouble() method in NumericNode
DBooleanNode.java80 public double asDouble(double defaultValue) { in asDouble() method in BooleanNode
DPOJONode.java91 public double asDouble(double defaultValue) in asDouble() method in POJONode
DTextNode.java129 public double asDouble(double defaultValue) { in asDouble() method in TextNode
/external/jsoncpp/src/test_lib_json/
Dmain.cpp457 JSONTEST_ASSERT_EQUAL(0.0, null_.asDouble()); in JSONTEST_FIXTURE_LOCAL()
529 JSONTEST_ASSERT_EQUAL(1.0, true_.asDouble()); in JSONTEST_FIXTURE_LOCAL()
537 JSONTEST_ASSERT_EQUAL(0.0, false_.asDouble()); in JSONTEST_FIXTURE_LOCAL()
587 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
615 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
643 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
671 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
699 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
727 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
754 JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
[all …]
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp519 LLAssert(llong(llong::kD32).asDouble() == llong::kD32);
522 LLAssert(llong(0, 1).asDouble() == 1);
523 LLAssert(llong(1, 0).asDouble() == llong::kD32);
524 LLAssert(llong((uint32_t)-1, (uint32_t)-1).asDouble() == -1);
527 LLAssert(llong().asDouble() == 0);
570 LLAssert(llong((double)0).asDouble() == (double)0);
571 LLAssert(llong((double)1).asDouble() == (double)1);
572 LLAssert(llong((double)0x7fffffff).asDouble() == (double)0x7fffffff);
573 LLAssert(llong((double)0x80000000).asDouble() == (double)0x80000000);
574 LLAssert(llong((double)0x80000001).asDouble() == (double)0x80000001);
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DJsonNode.java633 public double asDouble() { in asDouble() method in JsonNode
634 return asDouble(0.0); in asDouble()
647 public double asDouble(double defaultValue) { in asDouble() method in JsonNode
/external/deqp/framework/common/
DtcuFloat.hpp114 double asDouble (void) const;
129 …s, MantissaBits, ExponentBias, Flags>& other) const { return this->asDouble() < other.asDouble(); } in operator <()
189 inline double Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asDouble (void) … in asDouble() function in tcu::Float
/external/perfetto/src/trace_processor/importers/json/
Djson_utils.cc55 return static_cast<int64_t>(value.asDouble() * in CoerceToTs()
203 inserter->AddArg(flat_key_id, key_id, Variadic::Real(value.asDouble())); in AddJsonValueToArgs()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/moshi/
DJsonUtf8Reader.java805 double asDouble; in nextInt() local
807 asDouble = Double.parseDouble(peekedString); in nextInt()
812 result = (int) asDouble; in nextInt()
813 if (result != asDouble) { // Make sure no precision was lost casting to 'int'. in nextInt()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/
DDoubleLiteralExpr.java90 public double asDouble() { in asDouble() method in DoubleLiteralExpr
/external/webrtc/rtc_base/strings/
Djson.cc30 *out = rtc::ToString(in.asDouble()); in GetStringFromJson()
105 *out = in.asDouble(); in GetDoubleFromJson()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/merge/
DNodeMergeTest.java80 assertEquals(25.5, resultProps.path("extra").asDouble()); in testObjectDeepUpdate()
/external/openscreen/util/json/
Djson_helpers.h89 const double d = value.asDouble();
/external/jsoncpp/src/lib_json/
Djson_writer.cpp392 document_ += valueToString(value.asDouble()); in writeValue()
461 pushValue(valueToString(value.asDouble())); in writeValue()
679 pushValue(valueToString(value.asDouble())); in writeValue()
952 pushValue(valueToString(value.asDouble(), useSpecialFloats_, precision_, in writeValue()
/external/turbine/java/com/google/turbine/bytecode/
DAnnotationWriter.java91 writeConst('D', pool.doubleInfo(value.asDouble().value())); in writeConstElementValue()
/external/jsoncpp/include/json/
Dvalue.h395 double asDouble() const;
674 template <> inline double Value::as<double>() const { return asDouble(); }

12