2 ms·
What if the floating point number is, for example, a number of seconds coming from a millisecond time source? Binary floating point numbers notoriously can't re
by GuB-42 3y ago
What if the floating point number is, for example, a number of seconds coming from a millisecond time source? Binary floating point numbers notoriously can't represent decimals precisely.
You would obviously be better off timing in the proper unit so that you have an integer number of milliseconds but that's the kind of situation where performance starts to drop, no one understands why until some dev starts digging deeply into the encoding and maybe even write a blog post about how he got a massive speedup by multiplying numbers by 1000.