Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get float value in json java

import java.math.BigDecimal;
float mFloat = BigDecimal.valueOf(yourJSONobject.getDouble("double")).floatValue();
 
PREVIOUS NEXT
Tagged: #float #json #java
ADD COMMENT
Topic
Name
4+2 =