int

    Signed 64-bit integer type.

    int is a type, and will thus be used when assigning an integer value to a Variant. It can also be enforced with the : int type hint.


    Cast a float value to an integer value, this method simply removes the number fractions (i.e. rounds from towards zero), so for example int(2.7) will be equals to 2, will be equals to 0 and int(-2.7) will be equals to -2. This operation is also called truncation.