Hi,(adsbygoogle = window.adsbygoogle || []).push({});

First of all, if this is wrong forum, I apologize; please direct me to the correct one.

I have 4 * 8-byte integers, representing 2 rational numbers (i.e. 2 pairs of a nominator & a denominator).

The 2 rational numbers have the same mathematical value, but different nominator & denominator components.

E.g. 7/50, 21/150.

I cast the numbers to doubles (8-byte floating number), and then divide the pairs of the casted nominator/denominators.

Is it guaranteed that the result is the same among the 2 division operations, for arbitrary integers?

The following assumptions may be made:

1. The nominator & denominator are whole numbers, representable by less than 50 bits.

2. The denominator is larger or equal to the nominator.

Regards

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# IEEE float division

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - IEEE float division | Date |
---|---|

Testing floating point numbers for equality | Jan 12, 2018 |

Is there a byte that never occurs in a float? | Nov 1, 2017 |

Fortran Can't read float number from file | Dec 21, 2016 |

What Magazines should a Computer Science Student read | Nov 7, 2014 |

IEEE representation | Aug 3, 2014 |

**Physics Forums - The Fusion of Science and Community**