aboutsummaryrefslogtreecommitdiff
path: root/src/float.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/float.gleam')
-rw-r--r--src/float.gleam4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/float.gleam b/src/float.gleam
index 2d3ca3c..cd1d43e 100644
--- a/src/float.gleam
+++ b/src/float.gleam
@@ -11,3 +11,7 @@ pub fn to_string(f) {
|> iodata:from_float
|> iodata:to_string
}
+
+pub external fn ceiling(Float) -> Float = "math" "ceil";
+
+pub external fn floor(Float) -> Float = "math" "floor";