Answers for "representation of decimal number java"

2

java 2 decimals

double res = Math.round(a * 100) / 100;
Posted by: Guest on December-17-2020
0

set decimal point in java

DecimalFormat df = new DecimalFormat("###.###");
System.out.println(df.format(PI));
Posted by: Guest on May-30-2021

Code answers related to "representation of decimal number java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language