diff --git a/modules/core/num.html b/modules/core/num.html index 438a081e..460ab752 100644 --- a/modules/core/num.html +++ b/modules/core/num.html @@ -100,6 +100,12 @@

The largest representable numeric value.

Num.smallest #

The smallest positive representable numeric value.

+

Num.maxSafeInteger #

+

The largest integer that Wren can safely represent. It’s a constant value of 9007199254740991.

+

This is relevant because Wren uses double precision floating-point format + for numbers, which can only safely represent integers between -(253 - 1) and 253 - 1.

+

Num.minSafeInteger #

+

The smallest integer Wren can safely represent. It’s a constant value of -9007199254740991.

Methods #

abs #

The absolute value of the number.