Jonathan Sumabat 7.6

View as PDF

Submit solution

Points: 1
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Java

Jonathan Sumabat is trying to learn Java. In particular, he needs help with his rounding. Given a number, help Jonathan Sumabat round it to 2 decimal places without trailing zeroes. Make sure that if the decimal place to be rounded is a 5, to round up.

Input Specification

A number between 1 and 1 billion both inclusive. This number may not be a whole number.

Output Specification

Print the number rounded to 2 decimal places with no trailing zeroes.

Sample input

1.2

Sample output

1.2

Comments

There are no comments at the moment.