Created
January 31, 2016 10:01
-
-
Save kishida/d86c577c1ab018c5fa3d to your computer and use it in GitHub Desktop.
Round error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long max = 9_000_000_000_000_000_001L; | |
System.out.println(max); | |
double fl = max; | |
System.out.println(fl); | |
long max_i = (long) fl; | |
System.out.println(max_i); |
Author
kishida
commented
Jan 31, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment