Skip to content

Commit 37ac480

Browse files
eemeliaphillips
andauthored
Add note on integer overflow
Co-authored-by: Addison Phillips <[email protected]>
1 parent d008062 commit 37ac480

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/registry.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,13 @@ it can include option values.
438438
These are included in the resolved option values of the _expression_.
439439
The `:math` _options_ are not included in the resolved option values.
440440
441+
> [!NOTE]
442+
> Implementations can encounter practical limits with `:math` _expressions_,
443+
> such as the result of adding two integers exceeding
444+
> the storage or precision of some implementation-defined number type.
445+
> In such cases, implementations can emit an _Unsupported Operation_ error
446+
> or they might just silently overflow the underlying data value.
447+
441448
#### Selection
442449
443450
The _function_ `:math` performs selection as described in [Number Selection](#number-selection) below.

0 commit comments

Comments
 (0)