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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -