Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String args[]) {
- double d = 100.675;
- double e = 100.500;
- float f = 100;
- float g = 90f;
- System.out.println(Math.round(d));
- System.out.println(Math.round(e));
- System.out.println(Math.round(f));
- System.out.println(Math.round(g));
- }
- }
Add Comment
Please, Sign In to add comment