home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!merlin!iris.resntl.bhp.com.au!orinoko!kevinb
- From: kevinb@resntl.bhp.com.au (Kevin Black)
- Subject: AREV MULTIVALUE Symbolics
- Message-ID: <By038z.4qA@resntl.bhp.com.au>
- Keywords: AREV MULTIVALUE SYMBOLIC
- Sender: news@resntl.bhp.com.au (Usenet news system)
- Reply-To: kevinb@resntl.bhp.com.au
- Organization: BHP Research - Newcastle Laboratories
- Date: Fri, 20 Nov 1992 05:58:11 GMT
- Lines: 33
-
- I have a simple requirement that has wasted a deal of time. An invoice
- file holds a multivalued field for invoice amount. This field is defined
- as MD2,$ ie. formatted to $1,234.56. What I want is a symbolic to round
- up the decimal places as MD0,$. Apart from lots of gacky equations the following
- has been tried with raw data of 123456~1234 (result denotes the amount and
- amount.rnd fields):
-
- formula result
- amount amount.rnd
-
- @ans = {amount} $1,234.56 $123,456
- $12.34 $1,234
- @ans = {amount}/100 non-numeric when numeric expected
-
- @ans = {amount} /// 100 $1,234.56 $1,235
- $12.34 $0
-
- T my mind this should be one of the trivial exercises. After numerous other
- and much more complicated attempts I'm back to square one. Note that on the first
- multivalue when it works it actually rounds correctly without any code. The
- handling of multivalues in dictionary items is a constant cause for concern.
- Any help appreciated.
-
- Thanks,
- Kevin
- -------------------------------------------------------------------/\/\---
- Kevin Black Computer Systems Group Leader / / /\
- BHP Research - Newcastle Laboratories, Australia / / / \
- Snail : P.O. Box 188, Wallsend 2287 / / / /\ \
- Tel : +61 49 510434 Fax: +61 49 513740 \ \/ / / /
- Internet: kevinb@resntl.bhp.com.au \ / / /
- ------------------------------------------------------------------\/\/\/--
-
-