filmov
tv
Basic JavaScript (14/111) | Create Decimal Numbers with JavaScript | freeCodeCamp
Показать описание
Basic JavaScript (14/111) | Create Decimal Numbers with JavaScript | freeCodeCamp
We can store decimal numbers in variables too. Decimal numbers are sometimes referred to as floating point numbers or floats.
Note:
Not all real numbers can accurately be represented in floating point. This can lead to rounding errors. Details Here.
Create a variable myDecimal and give it a decimal value with a fractional part (e.g. 5.7).
We can store decimal numbers in variables too. Decimal numbers are sometimes referred to as floating point numbers or floats.
Note:
Not all real numbers can accurately be represented in floating point. This can lead to rounding errors. Details Here.
Create a variable myDecimal and give it a decimal value with a fractional part (e.g. 5.7).