diff options
Diffstat (limited to 'src/gleam_stdlib.js')
-rw-r--r-- | src/gleam_stdlib.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gleam_stdlib.js b/src/gleam_stdlib.js index 8b2f131..479b8a9 100644 --- a/src/gleam_stdlib.js +++ b/src/gleam_stdlib.js @@ -236,3 +236,11 @@ export function floor(float) { export function round(float) { return Math.round(float); } + +export function truncate(float) { + return Math.trunc(float); +} + +export function power(base, exponent) { + return Math.pow(base, exponent); +} |