File 0315-erlang-module-doc-float_to_list-2-float_to_binary-2.patch of Package erlang
From a86871fa145ee279e53fa3e13770224f84219bc1 Mon Sep 17 00:00:00 2001
From: Kjell Winblad <kjellwinblad@gmail.com>
Date: Wed, 2 Sep 2020 10:03:55 +0200
Subject: [PATCH 15/39] erlang module doc: float_to_list/2, float_to_binary/2
Add scientific notation example
---
erts/doc/src/erlang.xml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 139e3f4bbe..004ac3a1f6 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -1837,7 +1837,9 @@ true</pre>
> <input>float_to_binary(7.12, [{decimals, 4}]).</input>
<<"7.1200">>
> <input>float_to_binary(7.12, [{decimals, 4}, compact]).</input>
-<<"7.12">></pre>
+<<"7.12">>
+> <input>float_to_binary(7.12, [{scientific, 3}]).</input>
+<<"7.120e+00">></pre>
</desc>
</func>
@@ -1882,7 +1884,9 @@ true</pre>
> <input>float_to_list(7.12, [{decimals, 4}]).</input>
"7.1200"
> <input>float_to_list(7.12, [{decimals, 4}, compact]).</input>
-"7.12"</pre>
+"7.12"
+> <input>float_to_list(7.12, [{scientific, 3}]).</input>
+"7.120e+00"</pre>
</desc>
</func>
--
2.26.2