|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||||
|
|||||
|
That's correct.
|
|
#3
|
||||
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| team number... | Ken Leung | Chit-Chat | 39 | 28-09-2003 14:36 |
| Men of ChiefDelphi: Unite! | DanL | Chit-Chat | 26 | 08-04-2003 23:20 |
| Team Numbers | archiver | 2000 | 2 | 24-06-2002 00:24 |
| WASH scouting fields | Mike Soukup | Scouting | 0 | 04-02-2002 02:39 |
| 3 is the number and the number shall be 3... | Joe Johnson | General Forum | 21 | 03-12-2001 17:08 |