[MAYBE SPAM] converting numerics
PAUL DIACONESCU
paul_diaconescu@hotmail.com
Fri, 03 Sep 2004 17:23:50 -0400
You can also use the ascii command. It is easier than you think.
For exemple:
def d-num = 14356
def d-asc cha*10 = asc(d-num/100) + "." +
asc(d-num,16)[15:2]
d-asc will be = 143.56
paul diaconescu
>From: Chris Sharman <chris.sharman@ccagroup.co.uk>
>To: powerh-l@lists.sowder.com
>Subject: Re: [MAYBE SPAM] converting numerics
>Date: Thu, 02 Sep 2004 15:59:59 +0100
>
>Kristina Carlton wrote:
>>I am writing out data via Quiz extracts. Due to the size of the files we
>>are using the subfiles versus the textfiles and I noticed that my number
>>formats are gone in the subfiles. I tried the PICTURE command but it
>>basically ignores it. So for example, 114.56 looks like +00000011456. When
>>we read this data into our Progress database, it comes in as 11,456.
>>
>>Is the only way to get around this in Quiz to convert the numerics to
>>ASCII and then physically place the decimal? If so, do I have to check
>
>The best ascii conversion routine is formatnumber (present in more recent
>Powerhouse versions I believe - 7.10F+ for VMS) - this allows you to do
>just about everything you could want.
>The ascii function is, as you've noticed, very basic.
>
>Chris
>
>
>
>-----------------------------------------------------------------------
>
>Any views expressed in this message are those of the sender and not
>necessarily those of CCA Group. The unauthorized use, disclosure,
>copying or alteration of this message is forbidden. The contents of
>this message may be confidential and/or privileged, copyright CCA Group
>and are intended solely for the use of the individual or entity to whom
>they are addressed. Whilst this message has been scanned, CCA Group
>cannot guarantee that it is virus free or compatible with your systems
>and accepts no responsibility for any loss or damage arising from its
>use. The recipient is advised to run their own anti-virus software. If
>you receive this message in error please contact
>postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
>from your computer systems.
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.sowder.com
>Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
>Unsubscribe: "unsubscribe <password>" in message body to
>powerh-l-request@lists.sowder.com
>http://lists.sowder.com/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
_________________________________________________________________
Des mécanismes de contrôle parental puissants permettent à votre enfant de
découvrir tout ce qu’Internet a à offrir.
http://join.msn.com/?pgmarket=fr-ca&page=features/parental&ST=1&xAPID=1983&DI=2043
Commencez dès maintenant à profiter de tous les avantages de MSN Premium et
obtenez les deux premiers mois GRATUITS*.