Skip to content

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 costs to send over the network.

Size Index

Name Size Maximum Int Minimum Int
f32 4 bytes 16777216 −16777216
f64 8 bytes 2^53 -2^53

You can access each one with light.datatypes.<Name>.