I want to have numbers with a fixed digit count.
example: 00001, 00198, 48484
I can do like this:
string value; if (number < 10)
You should use the ToString() method with custom formating - see the docs. In particular the 0 specifier.
ToString()
0
Replaces the zero with the corresponding digit if one is present; otherwise, zero appears in the result string.
eg,
value = number.Tostring("00000");