But that’s a stringify method, tho.
JS passes a float to the console. Console prints the float however it wants to.
Just do strict comparison when you want to compare a variable to1e-5.
Cause a string of 0.00001 should be passed through parseFloat (or whatever your language equivalent is) before you compare it to a variable with the value f0.00001
But that’s a stringify method, tho.
JS passes a float to the console. Console prints the float however it wants to.
Just do strict comparison when you want to compare a variable to
1e-5
.Cause a string of
0.00001
should be passed throughparseFloat
(or whatever your language equivalent is) before you compare it to a variable with the valuef0.00001