Last active
January 3, 2016 18:19
-
-
Save cohalz/8501177 to your computer and use it in GitHub Desktop.
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
| let yen_of_doll doll = | |
| let rate = 114.32 in | |
| let yen = doll *. rate in | |
| if (int_of_float(yen *. 10.0) mod 10) < 5 then int_of_float (yen) else int_of_float (yen+.1.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment