4 ms·
Int-to-float conversion is lossy, as my Python example demonstrates, and thus should not be automatic. Performing a float op with an int, which you said should
by ArchD 4y ago
Int-to-float conversion is lossy, as my Python example demonstrates, and thus should not be automatic.
Performing a float op with an int, which you said should be allowed, entails automatic int-to-float conversion before the op, does it not?
- throwawaymaths 4y agoLossy doesn't make sense as a criterion with floats. Float to float addition can be lossy. Whether there is a conversion is architecture dependent. I believe x86 has an opcode for direct multiplication.