Floating point
From Coderwiki
More actions
Floating point numbers are a data type that is able to store decimal numbers as opposed to just an integer.
Like with integers, you can usually apply arithmetic operators to floating-point numbers (add, subtract, multiply and divide) but some operators may not work with floats.
Examples of floating-point values
edit edit source5.1
4.0
-27.3
6.4e7
1.2e-27
Non-examples of floating-point values
edit edit source5 (unless casted)
"4.3"
false
'7'