Imagine you have a number, for example 288.65
, and you want to multiply it without the decimal point in order to obtain the result of 28865
.
However, when attempting to achieve this by using console.log(288.65 * 100)
, the output is not as expected, showing 28864.999999999996
. I am uncertain about why this discrepancy occurs, any assistance would be greatly valued.