1 hour ago, Michael Parson said:
It seems to be due to how the 6502 does floating point vs the 'traditional' C implementation using IEEE 754.
In short, the 6502 doesn't do floating point at all. You need to implement it with 8-bit integer math. That's what BASIC does. You could absolutely implement IEEE 754 as a cc65 library, it's just going to be very slow same as any FP implementation.