home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11213 < prev    next >
Encoding:
Internet Message Format  |  1992-07-20  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!van-bc!nwnexus!ole!rwing!fnx!nazgul!bright
  2. From: bright@nazgul.UUCP (Walter Bright)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Power Operator vs NANs
  5. Keywords: ansi net
  6. Message-ID: <849@nazgul.UUCP>
  7. Date: 20 Jul 92 18:01:04 GMT
  8. References: <BqM2JG.8Ds@news.cso.uiuc.edu> <1992Jun29.144814.5240@u.washington.edu> <819@nazgul.UUCP> <1992Jul15.031449.1223@ucc.su.OZ.AU>
  9. Reply-To: bright@nazgul.UUCP (Walter Bright)
  10. Organization: Zortech, Seattle
  11. Lines: 33
  12.  
  13. In article <1992Jul15.031449.1223@ucc.su.OZ.AU> maxtal@extro.ucc.su.OZ.AU (John (MAX) Skaller) writes:
  14. /In article <819@nazgul.UUCP> bright@nazgul.UUCP (Walter Bright) writes:
  15. />I strongly agree that the C++ committee should look at handling NANs,
  16. />infinities, and other common floating point characteristics before getting
  17. />all hot and bothered about power operators. It is difficult to do robust
  18. />floating point apps without dealing with NANs and infinities, and it is
  19. />a shame that they are largely ignored by C++ compiler vendors. Zortech has
  20. />had them implemented for the last year, and no, it isn't difficult at all
  21. />to implement and it doesn't step on anything else either.
  22. /    Would you be prepared to post the specs? What 
  23. /operators are used, etc?
  24.  
  25. I don't have the specs in electronic form. But they have been included in
  26. the latest ANSI C++ mailing.
  27.  
  28. The additional operators are:
  29.     <    less
  30.     >    greater
  31.     <=    less or equal
  32.     >=    greater or equal
  33.     ==    equal
  34.     !=    unordered, less or greater
  35.     !<>=    unordered
  36.     <>    less or greater
  37.     <>=    less, equal or greater
  38.     !<=    unordered or greater
  39.     !<    unordered, greater or equal
  40.     !>=    unordered or less
  41.     !>    unordered, less or equal
  42.     !<>    unordered or equal
  43.  
  44.  
  45. Unordered means one or both operands is a NAN.
  46.