Dev - Data Types - Float

A 32-bit floating-point number. In Lua it's represented by a number.

Float Parameters

When methods have int parameters you can simply put the number in the code.

Precision

Lua uses 64-bit doubles to represent every type of number. When passing a Lua number to a method which requires a float, you will lose precision.

Float Return Values

When a method returns a float value, it will be converted to a Lua number.