diff options
Diffstat (limited to 'src/gleam_stdlib.js')
-rw-r--r-- | src/gleam_stdlib.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gleam_stdlib.js b/src/gleam_stdlib.js index 95fb526..8b2f131 100644 --- a/src/gleam_stdlib.js +++ b/src/gleam_stdlib.js @@ -224,3 +224,15 @@ export function print(string) { console.log(string); // We're in a browser. Newlines are mandated } } + +export function ceiling(float) { + return Math.ceil(float); +} + +export function floor(float) { + return Math.floor(float); +} + +export function round(float) { + return Math.round(float); +} |