2 ms·
Python will happily do this too, if you remove the ".0" in the example, the values become integers, instead of floats, and the computation is precise. The poin
by deathanatos 7y ago
Python will happily do this too, if you remove the ".0" in the example, the values become integers, instead of floats, and the computation is precise.
The point is to demonstrate a property of IEEE floats, not the language. I'd expect CL has some means of using IEEE floats too, and with the appropriate syntax, the same issues could be demonstrated.