Floating-Point Numbers : Float « Number Data Type « JavaScript Tutorial






Floating-point numbers can contain fractional parts.

Floating-point numbers can use exponential notation for added precision.

Floating-point numbers are made up of a decimal integer followed by a period (.) and the fractional portion of the number.

Exponential notation can be used by adding an e or E to the end of a floating-point number followed by a decimal integer that does not exceed 3 digits.

Use 1.0 not 1.

var fNum = 1.0;
5.4.Float
5.4.1.Floating-Point Numbers
5.4.2.Floating-point values can be represented using e-notation
5.4.3.float point value
5.4.4.Adding the float point numbers together