Issues with num.ToStr
Martin Hebel
Posts: 1,239
I'm using the following code in a very basic graphics program - not much esle going on.
What I get on the screen is 36 and 56 instead of 30 and 56.· There's a problem it seems in Jeff's numbers that I can't find a work around for. In another program, the 6 on 56 doesn't even show up.· Any thoughts?
-Martin
·
gr.textmode(2,2,6,3) gr.text(50,50,num.ToStr(30,num#DEC)) gr.text(150,50,num.ToStr(56,num#DEC))
What I get on the screen is 36 and 56 instead of 30 and 56.· There's a problem it seems in Jeff's numbers that I can't find a work around for. In another program, the 6 on 56 doesn't even show up.· Any thoughts?
-Martin
·
Comments
It will most likely help to call
gr.finish
Edit: As you know well, Martin: The issue is always the program you suspect least: your own
Post Edited (deSilva) : 12/14/2007 3:27:24 AM GMT
It seems like I ran into the same problem a year ago, then forgot about it.
But uless I misread the 'num#DEC2' usage, I still can't force leading 0's. The modifier simply shows that digit alone. But, did a work around for that one.
THanks much,
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
American Technical Educator's Assoc. Conference·- April, Biloxi, MS. -- PROPELLER WORKSHOP!