int
32-bit-looking integer in source. Luau numbers are IEEE-754 doubles — int is a documentation type.
Syntax
Section titled “Syntax”int name = value;Parameters
Section titled “Parameters”None.
Return value
Section titled “Return value”A value of type int, emitted as number.
Luau emit
Section titled “Luau emit”number
Description
Section titled “Description”Use for counts, coins, user ids stored as numbers. observable int becomes IntValue.
There is no int8_t / size_t distinct emit — they are not special.
Example
Section titled “Example”int coins = 100;coins += 1;Emits:
local coins: number = 100coins += 1See also
Section titled “See also”float · double · observable