home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / rexx / 1411 < prev    next >
Encoding:
Text File  |  1992-12-15  |  996 b   |  23 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!frmop11!psuvm!auvm!VNET.IBM.COM!MFC
  3. Message-ID: <REXXLIST%92121511453666@UGA.CC.UGA.EDU>
  4. Newsgroups: comp.lang.rexx
  5. Date:         Tue, 15 Dec 1992 16:44:38 GMT
  6. Sender:       REXX Programming discussion list <REXXLIST@UGA.BITNET>
  7. From:         Mike Cowlishaw <mfc@VNET.IBM.COM>
  8. Subject:      Rounding twice in format()
  9. Comments: To: rexxlist@uga.uga.edu
  10. Lines: 11
  11.  
  12. Yes, this is 'by design' -- it's assumed that built-in functions are
  13. not 'privileged' operators, and so should simply round their inputs
  14. (if "over-precise") before use.  The X3J18 (ANSI standard) committee
  15. favours a 'SIGNAL ON DIGITS' option that would let one detect when
  16. rounding was occurring in this kind of context.
  17.  
  18. Even/odd rounding was discounted for REXX because it implies processing
  19. an arbitrary number of digits, even if NUMERIC DIGITS is known (see
  20. footnote 40 on page 130 of "The REXX Language").
  21.  
  22. Mike Cowlishaw
  23.