A thousand different ways to do it...
One...use byte values, keep 2 digits in each byte
Byte0 = 0-99 (ones), Byte1 = 0-99 (hundreds), Byte2 = 0-99 (ten thousands), and so on...
Same thing with words...
Word0 = 0-9999 (ones), Word1 = 0-9999 (ten thousands)
If you have to do math on the bytes(words), do the math on one word at a time, roll the 'overflow' into the next byte(word)...
i.e. 50 + 75 = 125 in byte 0, roll the 100 into the Byte1, keep the 25 in byte0...and so on...and so on...
After that, it'll be a piece of cake to display on an LCD using the built LCD commands and same thing for storing the number...
Bookmarks