¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: How to add leading zeros to a number


 

¿ªÔÆÌåÓý

Alan

The issue is he may need 0, 1, or two leading zeroes thus the if else statement is probably best solution.?

73
Dave


Sent from my waxed string and tin cans.?

On Feb 28, 2021, at 5:07 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:

?Charlie

Look at the "String" Node, "PadLeft" Method. ?You can specify the number of characters and what to use to "fill" the empty space. ?Here is an example with six digits, fill left with "0".

Alan

<Screen Shot 2021-02-28 at 5.04.43 PM.png>

Join [email protected] to automatically receive all group messages.