Questions about Luau's numbers

Some questions about Luau numbers as I’m trying to do some UTF-8 conversion trickery.

Questions:

  1. How many bytes are in Luau numbers?
  2. What format do they use? (bits)

Thanks!

  1. 8 bytes
  2. IEEE 754 double-precision binary format (binary64)

Floating-point numbers in types like Vector3 are stored in IEEE 754 single-precision binary format (binary32), using only 4 bytes for numbers.

1 Like