aboutsummaryrefslogtreecommitdiff
path: root/gen/src/float.erl
diff options
context:
space:
mode:
Diffstat (limited to 'gen/src/float.erl')
-rw-r--r--gen/src/float.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/gen/src/float.erl b/gen/src/float.erl
new file mode 100644
index 0000000..e5f843b
--- /dev/null
+++ b/gen/src/float.erl
@@ -0,0 +1,10 @@
+-module(float).
+-compile(no_auto_import).
+
+-export([parse/1, to_string/1]).
+
+parse(A) ->
+ gleam__stdlib:parse_float(A).
+
+to_string(F) ->
+ iodata:to_string(iodata:from_float(F)).