Primitive type representing a signed 64-bit integer value.
Integers can be compared using the ==, !=,
>, <, >= and
<= operators.
Integers support the arithmetic operators +, -,
/, *, and %.
Integers can be negated using the - prefix.
Integer values will be coerced to type rules.Float when used in
comparison or arithmetic operations with a float value.
String and float values can be converted to integers using the
int() function:
int("2") == 2
int(2.0) == 2
Was this helpful?
Recommended for you
About these recommendations
These recommendations help you find the content you are looking for. They may be based on the page you’re currently viewing and your account’s saved web and app activity.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-12-13 UTC."],[],[]]