11 Jul 1998 23:42:02 -0400

Related articles |
---|

Is infinity equal to infinity? erikr@iar.se (Erik Runeson) (1998-07-08) |

Re: Is infinity equal to infinity? vosse@RULS41.FSW.LEIDENUNIV.NL (1998-07-10) |

Re: Is infinity equal to infinity? rwhutch@nr.infi.net (1998-07-10) |

Re: Is infinity equal to infinity? fis@mpi-sb.mpg.de (Matthias Fischmann) (1998-07-10) |

Re: Is infinity equal to infinity? john_mitchell@intuit.com (John Mitchell) (1998-07-10) |

Re: Is infinity equal to infinity? joachim.durchholz@munich.netsurf.de (Joachim Durchholz) (1998-07-10) |

Re: Is infinity equal to infinity? bear@sonic.net (Ray Dillinger) (1998-07-11) |

Re: Is infinity equal to infinity? Kevin@quitt.net (1998-07-11) |

Re: Is infinity equal to infinity? dwcantrell@aol.com (1998-07-13) |

Re: Is infinity equal to infinity? dwcantrell@aol.com (1998-07-13) |

Re: Is infinity equal to infinity? henry@spsystems.net (1998-07-13) |

Re: Is infinity equal to infinity? erikr@iar.se (Erik Runeson) (1998-07-20) |

Re: Is infinity equal to infinity? larry.jones@sdrc.com (Larry Jones) (1998-07-20) |

[6 later articles] |

From: | Ray Dillinger <bear@sonic.net> |

Newsgroups: | sci.math.num-analysis,comp.lang.c,sci.math,comp.compilers |

Date: | 11 Jul 1998 23:42:02 -0400 |

Organization: | Cognitive Dissidents |

Distribution: | inet |

References: | 98-07-058 |

Keywords: | arithmetic, design, comment |

Erik Runeson wrote:

*> Inf == Inf ?*

*> Inf - Inf = NaN*

*> Any comparison with a NaN (Not a number) shall, according to the IEEE*

*> 754 be concidered unordered and return false.*

The need to have return values for comparisons like inf=inf is perhaps

the best argument I've ever seen for NaB (Not a Boolean) as a

necessary part of a programming language.

[The IEEE floating point standard does say that some comparisons return

"unordered" as well as true or false. -John]

--

Post a followup to this message

Return to the
comp.compilers page.

Search the
comp.compilers archives again.