Answers for "rounding to 2 decimal place"

4

print up to 2 decimal in java

System.out.printf("%.2f", value);
Posted by: Guest on November-05-2020
0

perl format decimal 2 places not rounding

my $places = 2;
my $factor = 10**$places;
int(1.555 * $factor) / $factor;  # 1.55
Posted by: Guest on June-24-2020

Code answers related to "rounding to 2 decimal place"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language