Float representation of the number in Java Script

Lafa

New member
Joined
Jun 7, 2024
Messages
3
Points
1
Can anyone help me how to use the datatype float and double in Javascript as I am unable to enter floating numbers.
 

yette

New member
Joined
Jun 7, 2024
Messages
3
Points
1
All numbers in JavaScript are 64-bit floating point numbers. Use .toFixed() or .toPrecision() for the desired numbers of decimals.
 
Top