Bug or Not? Taking STRING of a string whilst making leading zeros
|
01-29-2018, 04:41 PM
(This post was last modified: 01-29-2018 07:11 PM by StephenG1CMZ.)
Post: #1
|
|||
|
|||
Bug or Not? Taking STRING of a string whilst making leading zeros
I was trying to add some leading zeros into a string.
I discovered that if there is an unneccessary call to STRING the leading 0 doesnt appear. Why aren't "9" and STRING("9") both of length 1, yielding 1 leading zero in the example code? Code:
Is there a better way to get leading zeros in a string? Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)