From 63d1ef2e449262becd654a13d1cb1462590e203f Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 22 Apr 2019 22:45:06 +0000 Subject: float:ceiling, float:floor --- gen/src/float.erl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gen/src') 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). -- cgit v1.2.3