Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Last active August 29, 2015 14:14
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 rentalcustard/c532e99d83c6ad5621dd to your computer and use it in GitHub Desktop.
Save rentalcustard/c532e99d83c6ad5621dd to your computer and use it in GitHub Desktop.
scala
scala> 'a' % 87.788
res0: Double = 9.212000000000003
scala> 'a' > 96
res1: Boolean = true
scala> 'a' - 97
res2: Int = 0
@melrief
Copy link

melrief commented Feb 3, 2015

This is Java, not Scala. For instance:

public class Test {
  public static void main(String[] args) {
    System.out.println('a' % 87.788);
    System.out.println('a' > 96);
  }
}

If you run it you get the same:

$ java Test
9.212000000000003
true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment