First page Back Continue Last page Graphics
Integers
integer (int) : a whole number without a decimal point
- represents values between
- 2,147,483,647 and -2147483648
- declared with the int command:
- useful for holding coordinates, sizes, etc.
- can be assigned a fraction (rounds off), but not a decimal value:
- ex. my_int = 10/9; // 10/9 rounded off, my_int now equals 1
- ex. my_int = 10.5; // processing will throw an error!