Skip to content Skip to sidebar Skip to footer
Showing posts with the label Precision

Javascript Floating Point Precision Issue

I am encountering a floating point precision issue, does anybody know why this happens? Why is it t… Read more Javascript Floating Point Precision Issue

2.9999999999999999 >> .5?

I heard that you could right-shift a number by .5 instead of using Math.floor(). I decided to check… Read more 2.9999999999999999 >> .5?