Skip to content

Instantly share code, notes, and snippets.

@starenka
Created November 30, 2012 18:58
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 starenka/4177757 to your computer and use it in GitHub Desktop.
Save starenka/4177757 to your computer and use it in GitHub Desktop.
starenka@kosmik1:~$ rhino -e 'print(1+.99)'
1.99
starenka@kosmik1:~$ rhino -e 'print(7+.99)'
7.99
starenka@kosmik1:~$ rhino -e 'print(7+5.99)'
12.99
starenka@kosmik1:~$ rhino -e 'print(7+15.99)'
22.990000000000002
starenka@kosmik1:~$ rhino -e 'print(7+25.99)'
32.989999999999995
starenka@kosmik1:~$ rhino -e 'print(7+35.99)'
42.99
starenka@kosmik1:~$ rhino -e 'print(7+135.99)'
142.99
starenka@kosmik1:~$ rhino -e 'print((7+25.99).toFixed(2))'
32.99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment