home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / 8749 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umnoor
  3. From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
  4. Subject: Currency fields and Rounding...Paradox 4.0
  5. Message-ID: <C059C2.Hxu@ccu.umanitoba.ca>
  6. Sender: news@ccu.umanitoba.ca
  7. Nntp-Posting-Host: ccu.umanitoba.ca
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. Date: Thu, 31 Dec 1992 22:04:50 GMT
  10. Lines: 28
  11.  
  12.  
  13.  
  14. HAPPY NEW YEAR!!!
  15.  
  16. I am having a problem with Paradox and PAL (v 4.0). I have to perform
  17. some calculation on some CURRENCY fields but Paradox is behaving in weird
  18. way. I give some examples below. Would appreciate any help on it.
  19.  
  20. There is an amount whose 5% comes to be $146.505. I use Round(146.505 ,2) on
  21. it and get $146.50. But I want it to round UP to $146.51 as all the people
  22. sending in the payments round UP and my app. and there payment forms are always
  23. off by 1 cent. How to fix it.
  24.  
  25. Also Paradox shows currency figures to two decimals only but it maintains
  26. actual number in memory. That causes problems for me. For example take the
  27. above number, i.e. $146.505. Paradox will show it as $146.51 in tables and
  28. you can even use Alt-F10 (PAL menu) ~V~alue function and it will tell you 
  29. that it is $146.51...*BUT* if you actually use the value of this field in
  30. calculations in PAL, this value used in calcs would be 146.505!!! This is
  31. again causing problems for me as my books and customers books dont match. We
  32. are always off by some cents. How to fix it?
  33.  
  34. I would appreciate your help.
  35.  
  36. regards
  37. --nasir
  38.  
  39. -- 
  40.