From: nelsonb@oodis01.af.mil (Contractor Bert Nelson)
Subject: Signed Numeric conversions
Date: 2 Mar 93 00:28:18 GMT
Date: 1993-03-02T00:28:18+00:00 [thread overview]
Message-ID: <2884@oodis01.af.mil> (raw)
I am trying to create a package that will handle the conversion of
Cobol signed numerics e.g. S999 into integer and Ada integer back
to a Cobol signed numeric, but every minute the package is becoming
more and more complicated.
For example a Cobol variable with a picture clause of PIC S999 might
have the values 121 or -121 in it and its signed numeric value is
"12A" and "12J" respectively. These would correspond with postive
121 and -121 in an Ada integer variable.
Cobol Signed Numeric Ada integer
12A 121
12J -121
Does anyone have suggestions on a simple way of doing
conversions from Cobol signed numerics to Ada integer and vice versa??
Bert Nelson
Hill Air Force Base
nelsonb@oodis01.af.mil
next reply other threads:[~1993-03-02 0:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-03-02 0:28 Contractor Bert Nelson [this message]
1993-03-02 4:22 ` Signed Numeric conversions Michael Feldman
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox