Skip to content

Instantly share code, notes, and snippets.

@adamkuipers
Created November 4, 2015 18:03
Show Gist options
  • Save adamkuipers/0d1f7c86f3a42c7811ad to your computer and use it in GitHub Desktop.
Save adamkuipers/0d1f7c86f3a42c7811ad to your computer and use it in GitHub Desktop.
scala> val x1: Float = Long.MaxValue
x1: Float = 9.223372E18
scala> val x2 = Long.MaxValue - Int.MaxValue
x2: Long = 9223372034707292160
scala> x1 == x2
res0: Boolean = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment