• (Link). I'm not an expert, but I do know something of IEEE 754, and it does seem to me that transforming floating-point numbers into integers won't solve the first problem you stated...