-Floating-point types represent real numbers and has a range of values and precision. The one downside of floating-points are they can behave abnormally during calculations and result in the loss of precision. The floating-point size depends on the platform (the browser and the OS). 32-bit OS and browser have 32 bits for number, while 64-bit have 64 bits. Therefore, it is good idea to use 32-bit numbers as it will work on any platform, including the 64-bit platforms. Floating-point types usually have a decimal and are extremely useful in JavaScript.
0 commit comments