File 0154-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.md b/system/doc/reference_manual/data_types.md
index a7168150a1..3731802838 100644
--- a/system/doc/reference_manual/data_types.md
+++ b/system/doc/reference_manual/data_types.md
@@ -42,11 +42,17 @@ conventional notation, there are two Erlang-specific notations:
ASCII value or unicode code-point of the character _`char`_.
- _`base`_`#`_`value`_
Integer with the base _`base`_, which must be an integer in the range 2
- through 36.
+ through 36. This notation can also be found in the Ada programming
+ language. Erlang does _not_ support prefixes such as `0x` for hexadecimal
+ or `077` for octal.
Leading zeroes are ignored. Single underscore characters (`_`) can be
inserted between digits as a visual separator.
+Also note that floating point numbers must start with a digit, and must
+contain a `.`. In other words, literals such as `.01` and `1e6` are not
+allowed, and must be written `0.01` and `1.0e6` respectively.
+
_Examples:_
```text
--
2.43.0