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
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.
Firebase Authentication lets you add an end-to-end identity solution to your app for easy user authentication, sign-in, and onboarding in just a few lines of code.
[[["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-03 UTC."],[],[]]