lua_std/number_.rs
1/// The type of numeric values.
2///
3/// The number type uses two internal representations, or *subtypes*:
4/// **integer** (64-bit) and **float** (double-precision). Lua converts
5/// between them automatically as needed, and `math.type` reveals the
6/// subtype of a value. Integer literals like `3` create integers;
7/// literals with a decimal point or exponent like `3.0` or `1e2` create
8/// floats.
9///
10/// ```lua
11/// print(3 / 2) --> 1.5 (division always produces a float)
12/// print(3 // 2) --> 1 (floor division)
13/// print(2^10) --> 1024.0 (exponentiation produces a float)
14/// ```
15pub struct number;