Home
last modified time | relevance | path

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

/external/smali/util/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/jsoncpp/src/test_lib_json/
Dmain.cpp265 JSONTEST_ASSERT_EQUAL(0.0, null_.asDouble()); in JSONTEST_FIXTURE()
329 JSONTEST_ASSERT_EQUAL(1.0, true_.asDouble()); in JSONTEST_FIXTURE()
337 JSONTEST_ASSERT_EQUAL(0.0, false_.asDouble()); in JSONTEST_FIXTURE()
387 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE()
415 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE()
443 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE()
471 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE()
499 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE()
527 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE()
554 JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble()); in JSONTEST_FIXTURE()
[all …]
/external/xmlrpcpp/src/
DXmlRpcValue.cpp129 case TypeDouble: _value.asDouble = rhs._value.asDouble; break; in operator =()
158 case TypeDouble: return _value.asDouble == other._value.asDouble; in operator ==()
356 _value.asDouble = dvalue; in doubleFromXml()
364 snprintf(buf, sizeof(buf)-1, getDoubleFormat().c_str(), _value.asDouble); in doubleToXml()
568 case TypeDouble: os << _value.asDouble; break; in write()
DXmlRpcValue.h49 XmlRpcValue(double value) : _type(TypeDouble) { _value.asDouble = value; } in XmlRpcValue()
90 operator double&() { assertTypeOrInvalid(TypeDouble); return _value.asDouble; }
179 double asDouble; member
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp515 LLAssert(llong(llong::kD32).asDouble() == llong::kD32);
518 LLAssert(llong(0, 1).asDouble() == 1);
519 LLAssert(llong(1, 0).asDouble() == llong::kD32);
520 LLAssert(llong((uint32_t)-1, (uint32_t)-1).asDouble() == -1);
523 LLAssert(llong().asDouble() == 0);
566 LLAssert(llong((double)0).asDouble() == (double)0);
567 LLAssert(llong((double)1).asDouble() == (double)1);
568 LLAssert(llong((double)0x7fffffff).asDouble() == (double)0x7fffffff);
569 LLAssert(llong((double)0x80000000).asDouble() == (double)0x80000000);
570 LLAssert(llong((double)0x80000001).asDouble() == (double)0x80000001);
[all …]
/external/jsoncpp/src/lib_json/
Djson_writer.cpp211 document_ += valueToString(value.asDouble()); in writeValue()
275 pushValue(valueToString(value.asDouble())); in writeValue()
498 pushValue(valueToString(value.asDouble())); in writeValue()
Djson_value.cpp658 double Value::asDouble() const { in asDouble() function in Json::Value
723 return (isNumeric() && asDouble() == 0.0) || in isConvertibleTo()
/external/deqp/framework/common/
DtcuFloat.hpp107 double asDouble (void) const;
175 inline double Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::asDouble (void) … in asDouble() function in tcu::Float
/external/webrtc/webrtc/base/
Djson.cc31 s << in.asDouble(); in GetStringFromJson()
108 *out = in.asDouble(); in GetDoubleFromJson()
Djson_unittest.cc272 EXPECT_EQ(in[i], out[i].asDouble()); in TEST()
/external/jsoncpp/
DNEWS.txt31 representable using an Int64, or asDouble() combined with minInt64 and
134 float (avoid lost of precision warning caused by used of asDouble()
/external/jsoncpp/src/jsontestrunner/
Dmain.cpp87 normalizeFloatingPointStr(value.asDouble()).c_str()); in printValueTree()
/external/jsoncpp/include/json/
Dvalue.h273 double asDouble() const;
/external/protobuf/conformance/third_party/jsoncpp/
Djsoncpp.cpp3168 double Value::asDouble() const { in asDouble() function in Json::Value
3234 return (isNumeric() && asDouble() == 0.0) || in isConvertibleTo()
4317 document_ += valueToString(value.asDouble()); in writeValue()
4387 pushValue(valueToString(value.asDouble())); in writeValue()
4604 pushValue(valueToString(value.asDouble())); in writeValue()
4885 pushValue(valueToString(value.asDouble(), useSpecialFloats_, precision_)); in writeValue()
Djson.h729 double asDouble() const;
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.cpp624 const Interval fpInterval = internalFormat.roundOut(Interval(fp16.asDouble()), false); in convertFP16()