aboutsummaryrefslogtreecommitdiff
path: root/src/float.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/float.gleam')
-rw-r--r--src/float.gleam2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/float.gleam b/src/float.gleam
index 8902a82..5840606 100644
--- a/src/float.gleam
+++ b/src/float.gleam
@@ -17,3 +17,5 @@ pub external fn ceiling(Float) -> Float = "math" "ceil";
pub external fn floor(Float) -> Float = "math" "floor";
pub external fn round(Float) -> Int = "erlang" "round";
+
+pub external fn truncate(Float) -> Int = "erlang" "trunc";