Releases: TenebrisNoctua/StructU
Version 1.1.0
- Added
int64anduint64data types.
Detailed Information
StructU now supports signed 64-bit and unsigned 64-bit integers.
int64 allows you to store numbers in the range of -2 ^ 63 ... 2 ^ 63 - 1000
uint64 allows you to store numbers in the range of 0 ... 2 ^ 64 - 2000
Why the weird limits?
Normally, the int64 type can store numbers in the range of -2 ^ 63 ... 2 ^ 63 - 1, and uint64 can store numbers in the range of 0 ... 2 ^ 64 - 1, however, in Luau, at the moment all numbers are double. Which loses precision at extremely high numbers. (Above 2 ^ 53) Due to this, it's impossible to represent numbers such as 2 ^ 63 - 1 or 2 ^ 64 - 1, as they will be truncated to closest representable number. Trying to supply 2 ^ 64 - 1, for example, will result in 2 ^ 64, which causes the result to overflow and reset to 0.
When Luau gets the built-in integer type, it may be possible to represent these two types of numbers in a more precise way.
Version 1.0.0
This is the first release for StructU. It contains an .rbxm file for Roblox usage.