home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / 5739 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.2 KB

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!mips!mips!munnari.oz.au!metro!extro.ucc.su.OZ.AU!rjmartin
  2. From: rjmartin@extro.ucc.su.OZ.AU (Trilogy Business Systems)
  3. Newsgroups: comp.databases
  4. Subject: Sybase rounding problem
  5. Summary: We need to get sybase to round money fields to 2 decimal places
  6. Keywords: Sybase Rounding
  7. Message-ID: <rjmartin.711766123@extro.ucc.su.OZ.AU>
  8. Date: 22 Jul 92 00:48:43 GMT
  9. Sender: news@ucc.su.OZ.AU
  10. Organization: Sydney University Computing Service, Sydney, NSW, Australia
  11. Lines: 21
  12. Nntp-Posting-Host: extro.ucc.su.oz.au
  13.  
  14. We have an stockbroking application that uses Uniface as the front end, and
  15. Sybase as the back end. Uniface keeps money fields to 2 decimal places, and 
  16. performs all calculations based on that assumption. Sybase on the other hand
  17. keeps money fields to four decimal places and calcuation are to that precision.
  18. This is causing us ** MAJOR ** problems, especially when balancing accounts,
  19. and closing open contracts etc.
  20.  
  21. Does anybody know of a way to force Sybase to round money fields to 2 decimal
  22. places e.g.
  23.  
  24.     123.4549 --> 123.45
  25.     123.4550 --> 123.46
  26.  
  27. Any help will be greatly appreciated, Please mail, and I will post a summary.
  28.  
  29. Yours Faithfully
  30.  
  31.  
  32. John Martin
  33. Software Manager
  34. Trilogy Business Systems Pty Ltd. (Aust)
  35.