SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest way to do this is just: You will receive a float or double and want it to convert it to the closest round up then just do System.out.println((int)Math.ceil(yourfloat)); it'll work perfectly
System.out.println((int)Math.ceil(yourfloat));