Hi,
Please help me on data Type. My program was OK on PBDOS 3.5, but my numbers are not on PBCC 4.0. I checked help and link below:
Data Types: Numbers, Strings, Constants and Literals
Example codes are in a sub:
1. STATIC B AS SINGLE 'output B=0
2. STATIC B AS INTEGER 'output B=-32768.000
Math: B=AnotherInteger+2 'Result should be 20
PRINT B
output:
'1. STATIC B AS SINGLE
output: B=0
'2. STATIC B AS INTEGER output
B=-32768.000
PBCC 4.0 did not show B=20 as it should be, without error code.
Thank you for helps
Please help me on data Type. My program was OK on PBDOS 3.5, but my numbers are not on PBCC 4.0. I checked help and link below:
Data Types: Numbers, Strings, Constants and Literals
Example codes are in a sub:
1. STATIC B AS SINGLE 'output B=0
2. STATIC B AS INTEGER 'output B=-32768.000
Math: B=AnotherInteger+2 'Result should be 20
PRINT B
output:
'1. STATIC B AS SINGLE
output: B=0
'2. STATIC B AS INTEGER output
B=-32768.000
PBCC 4.0 did not show B=20 as it should be, without error code.
Thank you for helps
Comment