Created
April 4, 2014 23:46
-
-
Save berngp/9985279 to your computer and use it in GitHub Desktop.
Scala Bug
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
val r = 0.0 to 1.1 by 0.1 | |
( ( r drop 2 ) drop 2 ) take 2 // doesn't work. | |
val r = BigDecimal(0.0) to 1.1 by 0.1 | |
( ( r drop 2 ) drop 2 ) take 2 // does work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment