diff options
Diffstat (limited to 'gen/src/float.erl')
-rw-r--r-- | gen/src/float.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gen/src/float.erl b/gen/src/float.erl index e5f843b..c290e97 100644 --- a/gen/src/float.erl +++ b/gen/src/float.erl @@ -1,10 +1,16 @@ -module(float). -compile(no_auto_import). --export([parse/1, to_string/1]). +-export([parse/1, to_string/1, ceiling/1, floor/1]). parse(A) -> gleam__stdlib:parse_float(A). to_string(F) -> iodata:to_string(iodata:from_float(F)). + +ceiling(A) -> + math:ceil(A). + +floor(A) -> + math:floor(A). |