comp.lang.ada
 help / color / mirror / Atom feed
* Signed Numeric conversions
@ 1993-03-02  0:28 Contractor Bert Nelson
  1993-03-02  4:22 ` Michael Feldman
  0 siblings, 1 reply; 2+ messages in thread
From: Contractor Bert Nelson @ 1993-03-02  0:28 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1993-03-02  4:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-03-02  0:28 Signed Numeric conversions Contractor Bert Nelson
1993-03-02  4:22 ` Michael Feldman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox