Oct 16, 2024 #1 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.
Can anyone help me how to use the datatype float and double in Javascript as I am unable to enter floating numbers.
Oct 16, 2024 #2 Y 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.
All numbers in JavaScript are 64-bit floating point numbers. Use .toFixed() or .toPrecision() for the desired numbers of decimals.