Number bases: arithmetic | ||||||||||
Arithmetic in base k follows the same general rules as base 10. | ||||||||||
Example: add 45six and 32six | ||||||||||
1 | 1 | carry | ||||||||
4 | 5 | |||||||||
+ | 3 | 2 | ||||||||
1 | 2 | 1 | ||||||||
Subtraction: may need to borrow. | ||||||||||
Multiplication: multiply 1 factor by each digit of 2nd factor, add | ||||||||||