File 1188-Document-details-of-existing-integer-and-float-notat.patch of Package erlang
From e4c552504800529be0d15c271f7a5a2bfa2bb06a Mon Sep 17 00:00:00 2001
From: Richard Carlsson <carlsson.richard@gmail.com>
Date: Sat, 21 Dec 2024 13:35:02 +0100
Subject: [PATCH 1/3] Document details of existing integer and float notation
---
system/doc/reference_manual/data_types.md | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/system/doc/reference_manual/data_types.xml b/system/doc/reference_manual/data_types.xml
index a7168150a1..3731802838 100644
--- a/system/doc/reference_manual/data_types.xml
+++ b/system/doc/reference_manual/data_types.xml
@@ -58,10 +58,16 @@
<item><em><c>base</c></em><c>#</c><em><c>value</c></em> <br></br>
Integer with the base <em><c>base</c></em>, that must be an
- integer in the range 2..36.</item>
+ integer in the range 2..36. This notation can also be found in the Ada
+ programming language. Erlang does <em>not</em> support prefixes such as
+ <c>0x</c> for hexadecimal or <c>077</c> for octal.</item>
</list>
<p>Leading zeroes are ignored. Single underscore <c>_</c> can be inserted
between digits as a visual separator.</p>
+ <p>Also note that floating point numbers must start with a digit, and must
+ contain a <c>.</c>.
+ In other words, literals such as <c>.01</c> and <c>1e6</c> are not allowed,
+ and must be written <c>0.01</c> and <c>1.0e6</c> respectively.</p>
<p><em>Examples:</em></p>
<pre>
1> <input>42.</input>
--
2.43.0