home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!almserv!samhain!gaujxl
- From: gaujxl@samhain.fnma.com (Jacob Lifshitz)
- Subject: Re: Sybase rounding problem
- Message-ID: <1992Jul22.121448.19593@almserv.uucp>
- Keywords: Sybase Rounding
- Sender: usenet@almserv.uucp
- Nntp-Posting-Host: samhain
- Organization: Fannie Mae, Washington, DC
- References: <rjmartin.711766123@extro.ucc.su.OZ.AU>
- Date: Wed, 22 Jul 1992 12:14:48 GMT
- Lines: 22
-
- In article <rjmartin.711766123@extro.ucc.su.OZ.AU> rjmartin@extro.ucc.su.OZ.AU (Trilogy Business Systems) writes:
- >
- >Does anybody know of a way to force Sybase to round money fields to 2 decimal
- >places e.g.
- >
- > 123.4549 --> 123.45
- > 123.4550 --> 123.46
- >
- >John Martin
- >Software Manager
- >Trilogy Business Systems Pty Ltd. (Aust)
-
- On page 2-126 of the Command Reference Manual for release 4.2 (May 90)
- under the heading: Functions, sub-heading 4: Mathematical Functions it says:
-
- round (numeric-expr, integer-expr) Rounding of a numeric expression to
- the precision specified in
- integer-expr. The expression can be
- of integer, float, or money type.
- type as the numeric expression.
-
- kobi
-