![]() |
Integer Number
Greetings,
If I declare a variable as type Byte, then I can only represent an integer up to 255, correct ? Else, I have to define it as type word ? thanks. |
That's correct.
|
Actually, not even an integer. The term integer implies that negative numbers can be represented, which is untrue in the PBasic language. The correct term would be whole numbers up to 255.
A 'bit' represents the whole numbers 0 and 1 A 'nib' represents the whole numbers 0-15 A 'byte' represents the whole numbers 0-255 A 'word' represents the whole numbers 0-65535 |
| All times are GMT -5. The time now is 04:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi