Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java float get 2 decimals

DecimalFormat df = new DecimalFormat("0.00");
String myFormattedFloat = df.format(myFloat);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #float #decimals
ADD COMMENT
Topic
Name
6+2 =