I output large numbers, eg, 3000000 to my LCD. I want to format with zeros ie 3,000,000. I've figured out how to split the number in to groups of three digits and display.
lcdout #part1,",",#part2,",",#part3
This outputs 3,0,0.
Any suggestions to pad out numbers <100 with leading zeros?
Thanks.
lcdout #part1,",",#part2,",",#part3
This outputs 3,0,0.
Any suggestions to pad out numbers <100 with leading zeros?
Thanks.