Floating Points
Floating points represent a number with decimal places.
You can tell a Datatype represents a decimal number if its name has the f
prefix.
The number afterward tells you how many bits the Datatype uses to represent values
sent over the network.
Size Index
Name | Size | Maximum Int | Minimum Int |
---|---|---|---|
f32 |
4 bytes |
2^24 (16,777,216) |
-(2^24) (−16,777,216) |
f64 |
8 bytes |
2^53 (9,007,199,254,740,992) |
-(2^53) (-9,007,199,254,740,992) |
You can access each one with light.datatypes.<Name>
.