java - json parse long double values without auto format -
i'm trying parse json array values. got problems long values "0.00009800".
i've tried jsonobject.getdouble , getstring on - returns 9.8e-5. tried bigdecimal same results.
it should has simple solution i'm missing.
tmp.high24h = double.valueof(e.getstring("high")); tmp.low24h = java.math.bigdecimal.valueof(e.getdouble("low")).doublevalue();
9.8e-5
expected value. represents 9.8 * 10^(-5)
.
Comments
Post a Comment