Skip to content

Instantly share code, notes, and snippets.

@berngp
Created April 4, 2014 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berngp/9985279 to your computer and use it in GitHub Desktop.
Save berngp/9985279 to your computer and use it in GitHub Desktop.
Scala Bug
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