From 8797d27e0801d37a6082ce54dac9f9d5cb01ec6c Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 22 Apr 2019 22:53:10 +0000 Subject: float:round --- src/float.gleam | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/float.gleam') 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"; -- cgit v1.2.3