Garry's Mod Wiki

Revision Difference

number#561734

<title>Numbers & Integers</title> <cat>Dev.Lua</cat> All numbers in Lua use the [double-precision floating-point format](https://en.wikipedia.org/wiki/double-precision_floating-point_format). Even integers are stored in this format. The <page>math</page> library is often used with numbers.All numbers in Lua use the [double-precision floating-point format](https://en.wikipedia.org/wiki/double-precision_floating-point_format). Even integers are stored in this format. ⤶ ⤶ Numbers in Garry's Mod are 16 bits wide. This should be taken into account, as it may cause imprecision in very large or very small numbers.