Search found 1 match

by ldsierra
7 years ago
Forum: Java
Topic: Redondeo en JAVA
Replies: 9
Views: 6158
Gender: None specified

Re: Redondeo en JAVA

Hi Alex13
You can also use this way

Code: Select all

System.out.printf("%.2f", 12.35642);     //output  12,36
System.out.printf("%.5f", 12.35);        //output  12,35000

Go to advanced search