(j3.2006) IEEE comparisons

Fred J. Tydeman tydeman
Tue Aug 16 12:19:19 EDT 2016


On Mon, 15 Aug 2016 23:08:56 -0700 Robert Corbett wrote:
>
>The current wording of the standard indicates that the
>comparison operations should generate at most one exception.
>That is fine for comparisons when the operands have the
>same format, but it is a problem when the operands have
>different formats.

Can you give an example of why you think that is a problem?

When a narrow format is converted to a wider format, no exception is raised.


---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (775) 287-5904      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the J3 mailing list