blob: f9e406444ad7af6c843eeaab7956271e5fe16494 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
-module(float).
-compile(no_auto_import).
-export([parse/1, to_string/1, ceiling/1, floor/1, round/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).
round(A) ->
erlang:round(A).
|