Page 2 of 2

Re: Number displays incorrectly if the first digit is zero

Posted: Tue Jun 13, 2017 8:10 am
by MasterLee
I not blocked you working solution. I just was curious about how renaming an variable could solve the problem.
As you changing:

Code: Select all

new = tostring(text)
to

Code: Select all

new = ('%010d'):format(text)
is joust enough. For formating 10 digit numbers.

Re: Number displays incorrectly if the first digit is zero

Posted: Tue Jun 13, 2017 2:45 pm
by RaycatRakittra
@zorg: I'm not ignoring you. I legitimately didn't even see you post on this whole thread until today.
And you've proved your point; yes, your code works. OP should use your code.

Re: Number displays incorrectly if the first digit is zero

Posted: Sun Jun 18, 2017 12:44 am
by zorg
Hallelujah! :ultrahappy:
(No but seriously, it was getting just a bit ridiculous :D)