Float
Float
Verse uses float as the type for storing and handling floating point numbers, such as 1.0, -50.5, and 3.14159.
Verse uses float as the type for storing and handling floating point numbers, such as 1.0, -50.5, and 3.14159.
A float in Verse is an IEEE 64-bit float, which means it can contain a positive or negative number that has a decimal point in the range [-2^1024 + 1, … , 0, … , 2^1024 - 1], or has the value NaN (Not a Number).
The implementation for float differs from the IEEE standard in the following ways:
- There is only one
NaNvalue. NaNis equal to itself.- Every number is equal to itself. If two numbers are equal, then no pure Verse code can observe the difference between them.
0cannot be negative.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.