Created
July 3, 2016 04:31
-
-
Save hnw/1573e7936ab4aac18789901b76952b78 to your computer and use it in GitHub Desktop.
This file contains 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
$ java -version | |
java version "1.7.0_79" | |
Java(TM) SE Runtime Environment (build 1.7.0_79-b15) | |
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode) | |
$ java RoundTest | |
d1: 0.49999999999999994 | |
round(d1): 0 | |
d2: 9.007199254740991E15 | |
round(d2): 9007199254740992 | |
$ java -version | |
java version "1.7.0_80" | |
Java(TM) SE Runtime Environment (build 1.7.0_80-b15) | |
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) | |
$ java RoundTest | |
d1: 0.49999999999999994 | |
round(d1): 0 | |
d2: 9.007199254740991E15 | |
round(d2): 9007199254740992 | |
$ java -version | |
java version "1.8.0_91" | |
Java(TM) SE Runtime Environment (build 1.8.0_91-b14) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode) | |
$ java RoundTest | |
d1: 0.49999999999999994 | |
round(d1): 0 | |
d2: 9.007199254740991E15 | |
round(d2): 9007199254740991 | |
$ java -version | |
java version "1.8.0_92" | |
Java(TM) SE Runtime Environment (build 1.8.0_92-b14) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode) | |
$ java RoundTest | |
d1: 0.49999999999999994 | |
round(d1): 0 | |
d2: 9.007199254740991E15 | |
round(d2): 9007199254740991 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment