Firebase Docs Reference Interface: Integer rules.Integer interface static 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 Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated May 2, 2018.