aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-04-22 22:53:10 +0000
committerLouis Pilfold <louis@lpil.uk>2019-04-22 22:54:26 +0000
commit8797d27e0801d37a6082ce54dac9f9d5cb01ec6c (patch)
treebb63c54be91b68aac6058c466d52634736549d4b /src
parent63d1ef2e449262becd654a13d1cb1462590e203f (diff)
downloadgleam_stdlib-8797d27e0801d37a6082ce54dac9f9d5cb01ec6c.tar.gz
gleam_stdlib-8797d27e0801d37a6082ce54dac9f9d5cb01ec6c.zip
float:round
Diffstat (limited to 'src')
-rw-r--r--src/float.gleam2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/float.gleam b/src/float.gleam
index cd1d43e..8902a82 100644
--- a/src/float.gleam
+++ b/src/float.gleam
@@ -15,3 +15,5 @@ pub fn to_string(f) {
pub external fn ceiling(Float) -> Float = "math" "ceil";
pub external fn floor(Float) -> Float = "math" "floor";
+
+pub external fn round(Float) -> Int = "erlang" "round";