SyntaxFix
Write A Post
Hire A Developer
Questions
This is the simplest i could make it but it gets the job done a lot easier than most examples ive seen.
double total = 1.4563; total = Math.round(total * 100); System.out.println(total / 100);
The result is 1.46.