aboutsummaryrefslogtreecommitdiff
path: root/gen/src/float.erl
blob: c290e97d360600eaa678d16c1e2142825a7c01cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-module(float).
-compile(no_auto_import).

-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).