I have a number, I want to pad this number with zero's in the beginning if the digits are less that 9 digits.
currently if I have a number lets say:
val num = "123"
if I use padTo(9,"0")
I will get "123000000"
but I want "000000123"
...
what is the best solution for this?
would be better to get the solution in scala
thanks