Skip to content

Commit

Permalink
Document details of existing integer and float notation
Browse files Browse the repository at this point in the history
  • Loading branch information
richcarl committed Dec 27, 2024
1 parent 097a8d4 commit 28ad2e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system/doc/reference_manual/data_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28ad2e8

Please sign in to comment.