38 ms·
It really depends! Floats are /really/ fast for many operations that are really slow on ints. On modern CPUs, it's faster to cast a number to double, do a squa
by t8sr 4y ago
It really depends! Floats are /really/ fast for many operations that are really slow on ints.
On modern CPUs, it's faster to cast a number to double, do a square root and cast back to int, than even the cleverest bithacking int algorithm.