The Math.fround() function rounds a number to a 32-bit floating point value. Here is an example to demonstrate this:
console.log(Math.fround(0));console.log(Math.fround(1));console.log(Math.fround(1.137));console.log(Math.fround(1.5));
The output is as follows:
011.13699996471405031.5