Hi,
I planed to buy PB Windows after I have PBCC 4.0, however, I am having problem using Data Type for PBCC 4.0.
MY problem is:
My calculation will yield an integer number Num from 4 to 12 digits,
First, assuming number Num will be 4 digits long such as 1234:
If I used AS SINGLE:
LOCAL Num AS SINGLE
Num=1234
I will have under flow value for
Num= 357402.
I checked help Index from PBCC:
Single-precision 32 bits (4 bytes) 8.43x10^-37 to 3.40x10^38
Long-integer 32 bits (4 bytes), signed -2,147,483,648 to 2,147,483,647
I tried AS LONG but it did not work for 4 digit value.
It is only accept AS WORD for 4 digits:
LOCAL Num AS WORD
'Program will print Num : 1234
My question:
How to define Data Type for Num to be used from both 4 digits to a 12 digits long ?
Will PB Windows version has problem with under flow and over flow too ? If yes, I may say good bye to PB Windows and go back to PB DOS as Data Type for Perl, I think Perl is having the best Data Type!
Thank you for your help
Can Le
I planed to buy PB Windows after I have PBCC 4.0, however, I am having problem using Data Type for PBCC 4.0.
MY problem is:
My calculation will yield an integer number Num from 4 to 12 digits,
First, assuming number Num will be 4 digits long such as 1234:
If I used AS SINGLE:
LOCAL Num AS SINGLE
Num=1234
I will have under flow value for
Num= 357402.
I checked help Index from PBCC:
Single-precision 32 bits (4 bytes) 8.43x10^-37 to 3.40x10^38
Long-integer 32 bits (4 bytes), signed -2,147,483,648 to 2,147,483,647
I tried AS LONG but it did not work for 4 digit value.
It is only accept AS WORD for 4 digits:
LOCAL Num AS WORD
'Program will print Num : 1234
My question:
How to define Data Type for Num to be used from both 4 digits to a 12 digits long ?
Will PB Windows version has problem with under flow and over flow too ? If yes, I may say good bye to PB Windows and go back to PB DOS as Data Type for Perl, I think Perl is having the best Data Type!
Thank you for your help
Can Le
Comment