Daily Challenge #8

This time it is a procedure again.

  • Can you see what it does?
  • Can you make one yourself in a different way?

Selection_999(799)

For the record. I didn’t make the procedure.

5 Likes

I am little weak in procedures, i always configure out in my different ways like, but i am learning to use procedures and will check out all procedures made by you helps me a lot to understand

2 Likes

i tried it and configured, awesome,

2 Likes

Since nobody has attempted yet, I’ll give this a go.

Does it add leading zeroes to a number? ([3] + 15 = 00015)


I would run a loop from 1 to the number of digits to be added, and then append a ‘0’ to a text variable each time. Definitely not the most efficient, but it works :smile:

2 Likes

Here i used 3 as digit and 15 as number

I think @Taifun’s solution is the smartest one.

My two procedures:

This one has a limitation of 30 zeroes but it can be easily modified to whatever length needed.

4 Likes

Don’t know if it is the smartest one. I like yours to. I especially didn’t mention his name or else users could search his site for it. :sunglasses:

2 Likes

Oops! Sorry, I didn’t notice!
I think it’s smarter because it doesn’t need any variables or loops and doesn’t have a zeroes limit.

4 Likes