home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / 5747 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.1 KB  |  36 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!almserv!samhain!gaujxl
  3. From: gaujxl@samhain.fnma.com (Jacob Lifshitz)
  4. Subject: Re: Sybase rounding problem
  5. Message-ID: <1992Jul22.121448.19593@almserv.uucp>
  6. Keywords: Sybase Rounding
  7. Sender: usenet@almserv.uucp
  8. Nntp-Posting-Host: samhain
  9. Organization: Fannie Mae, Washington, DC
  10. References: <rjmartin.711766123@extro.ucc.su.OZ.AU>
  11. Date: Wed, 22 Jul 1992 12:14:48 GMT
  12. Lines: 22
  13.  
  14. In article <rjmartin.711766123@extro.ucc.su.OZ.AU> rjmartin@extro.ucc.su.OZ.AU (Trilogy Business Systems) writes:
  15. >
  16. >Does anybody know of a way to force Sybase to round money fields to 2 decimal
  17. >places e.g.
  18. >
  19. >    123.4549 --> 123.45
  20. >    123.4550 --> 123.46
  21. >
  22. >John Martin
  23. >Software Manager
  24. >Trilogy Business Systems Pty Ltd. (Aust)
  25.  
  26. On page 2-126 of the Command Reference Manual for release 4.2 (May 90)
  27. under the heading: Functions, sub-heading 4: Mathematical Functions it says:
  28.  
  29. round (numeric-expr, integer-expr)    Rounding of a numeric expression to
  30.                     the precision specified in
  31.                     integer-expr.  The expression can be
  32.                     of integer, float, or money type.
  33.                     type as the numeric expression.
  34.  
  35. kobi
  36.