Firebase Docs Reference Interface: Float rules.Float interface static Primitive type representing a 64-bit IEEE floating point number. Floats can be compared using the ==, !=, >, <, >= and <= operators. Floats support the arithmetic operators +, -, /, *, and %. Floats can be negated using the - prefix. String and integer values can be converted to float values using the float() function: float("2.2") == 2.2 float(2) == 2.0 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.