Home
last modified time | relevance | path

Searched refs:numberToString (Results 1 – 3 of 3) sorted by relevance

/libcore/json/src/test/java/libcore/org/json/
DJSONObjectTest.java950 assertEquals("5", JSONObject.numberToString(5)); in testNumberToString()
951 assertEquals("-0", JSONObject.numberToString(-0.0d)); in testNumberToString()
952 assertEquals("9223372036854775806", JSONObject.numberToString(9223372036854775806L)); in testNumberToString()
953 assertEquals("4.9E-324", JSONObject.numberToString(Double.MIN_VALUE)); in testNumberToString()
954 assertEquals("1.7976931348623157E308", JSONObject.numberToString(Double.MAX_VALUE)); in testNumberToString()
956 JSONObject.numberToString(Double.NaN); in testNumberToString()
961 JSONObject.numberToString(Double.NEGATIVE_INFINITY); in testNumberToString()
966 JSONObject.numberToString(Double.POSITIVE_INFINITY); in testNumberToString()
970 assertEquals("0.001", JSONObject.numberToString(new BigDecimal("0.001"))); in testNumberToString()
972 JSONObject.numberToString(new BigInteger("9223372036854775806"))); in testNumberToString()
[all …]
/libcore/json/src/main/java/org/json/
DJSONStringer.java258 out.append(JSONObject.numberToString((Number) value)); in value()
293 out.append(JSONObject.numberToString(value)); in value()
DJSONObject.java745 @NonNull public static String numberToString(@NonNull Number number) throws JSONException { in numberToString() method in JSONObject