View previous topic :: View next topic |
Author |
Message |
pkrish_18 Beginner
Joined: 08 Apr 2005 Posts: 12 Topics: 7
|
Posted: Tue May 24, 2005 6:27 am Post subject: Max Value which PIC S9(5)V9(4) can hold |
|
|
Hi,
Can you pls let me know the max value which the following variable can hold?
TGT-ITEM-TRANSFER-PRICE PIC S9(5)V9(4) COMP.
It will be preferable if you can tell me how much the real part can hold and how much the precision or decimal part can hold
Regards,
Krish |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Crox Beginner
Joined: 29 May 2004 Posts: 52 Topics: 9
|
Posted: Sat Jun 18, 2005 2:06 pm Post subject: |
|
|
It also depends on the specification of the TRUNC parm of the compiler. If it is TRUNC(STD), it will make the field behave like the STandDard COBOL definition!
If you want no trouble with the TRUNC, define not COMP but COMP-5.
Regards,
Crox |
|
Back to top |
|
|
|
|