How to convert number to string with fixed length?
90 views (last 30 days)
Juan Moreno on 4 Dec 2020
I need to convert an integer into a string with 4 digits; I mean if the number is 4, I need "0004", if the number is 360, I need "0360", and so on. The string function doesn't work for this. I would like to do it without using the if statement. Thank you.