if 64 number is a list of binary numbers, or 2 32 bits int
numbers in memory, there is nothing that one miss
if 64 bit number is ask as input, in decimal form (or something
as long double 1.8968685675745464643;), yes some imprecision has
to be in the last binary digits
Hello all,
Using a 32-bit hardware :
Loading a 64-bit integer into the FPU, and than extract it as a double >(fild,fstp). When the value is very large a loss-of-precision occurs (the >lower bits get lost).
Loading a double and storing it as a 64-bit integer (fld, fistp). When the >value is very large an overflow occurs.
As my FPU doesn't throw an exception (and I do not need it to), how do I >check for the just-occurred loss-of-precision or overflow ?
I've been looking at the FSTSW/FNSTSW instruction, but that doesn't show >either of the above exceptions.
I've tried DDG-ing for it, but could not find anything (other than >suggestions to how not to get those exceptions). :-(
Regards,
Rudy Wieser
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 01:59:14 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,321 |