home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!van-bc!nwnexus!ole!rwing!fnx!nazgul!bright
- From: bright@nazgul.UUCP (Walter Bright)
- Newsgroups: comp.lang.c++
- Subject: Re: Power Operator vs NANs
- Keywords: ansi net
- Message-ID: <849@nazgul.UUCP>
- Date: 20 Jul 92 18:01:04 GMT
- References: <BqM2JG.8Ds@news.cso.uiuc.edu> <1992Jun29.144814.5240@u.washington.edu> <819@nazgul.UUCP> <1992Jul15.031449.1223@ucc.su.OZ.AU>
- Reply-To: bright@nazgul.UUCP (Walter Bright)
- Organization: Zortech, Seattle
- Lines: 33
-
- In article <1992Jul15.031449.1223@ucc.su.OZ.AU> maxtal@extro.ucc.su.OZ.AU (John (MAX) Skaller) writes:
- /In article <819@nazgul.UUCP> bright@nazgul.UUCP (Walter Bright) writes:
- />I strongly agree that the C++ committee should look at handling NANs,
- />infinities, and other common floating point characteristics before getting
- />all hot and bothered about power operators. It is difficult to do robust
- />floating point apps without dealing with NANs and infinities, and it is
- />a shame that they are largely ignored by C++ compiler vendors. Zortech has
- />had them implemented for the last year, and no, it isn't difficult at all
- />to implement and it doesn't step on anything else either.
- / Would you be prepared to post the specs? What
- /operators are used, etc?
-
- I don't have the specs in electronic form. But they have been included in
- the latest ANSI C++ mailing.
-
- The additional operators are:
- < less
- > greater
- <= less or equal
- >= greater or equal
- == equal
- != unordered, less or greater
- !<>= unordered
- <> less or greater
- <>= less, equal or greater
- !<= unordered or greater
- !< unordered, greater or equal
- !>= unordered or less
- !> unordered, less or equal
- !<> unordered or equal
-
-
- Unordered means one or both operands is a NAN.
-