File 0309-erlang-module-doc-list_to_float-1-and-binary_to_floa.patch of Package erlang
From a0c374af19f8c423a40e408d1ec2b7a4d03913ab Mon Sep 17 00:00:00 2001
From: Kjell Winblad <kjellwinblad@gmail.com>
Date: Tue, 1 Sep 2020 10:20:32 +0200
Subject: [PATCH 09/39] erlang module doc: list_to_float/1 and
binary_to_float/1
Add string format information to list_to_float/1 and binary_to_float/1
---
erts/doc/src/erlang.xml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 2ced2fc457..99ba602126 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -556,6 +556,10 @@ Z = erlang:adler32_combine(X,Y,iolist_size(Data2)).</code>
<pre>
> <input>binary_to_float(<<"2.2017764e+0">>).</input>
2.2017764</pre>
+ <p>The float string format is the same as the format for
+ <seeguide marker="system/reference_manual:data_types">Erlang
+ float literals</seeguide> except for that underscores are not
+ permitted.</p>
<p>Failure: <c>badarg</c> if <c><anno>Binary</anno></c> contains a bad
representation of a float.</p>
</desc>
@@ -2847,6 +2851,10 @@ false</code>
<pre>
> <input>list_to_float("2.2017764e+0").</input>
2.2017764</pre>
+ <p>The float string format is the same as the format for
+ <seeguide marker="system/reference_manual:data_types">Erlang
+ float literals</seeguide> except for that underscores are not
+ permitted.</p>
<p>Failure: <c>badarg</c> if <c><anno>String</anno></c> contains a bad
representation of a float.</p>
</desc>
--
2.26.2