how do I round off?...
Beginner programmer needing help... :-/
How do I round off a double to make an int?
Typecasting only truncates numbers...
Here's an example of what I want to do...
"2.25356353% of the sum, rounded off, is 2%"
OR
"2.25356353% of the sum, rounded off, is 2.25%"
I want to learn how to round off numbers at the exact decimal places I want them to round off, essentially using significant figures. Is this possible with Java? It is with some other languages...

