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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -