i want to give an input a string as “2.07”
output should be “2.070”
another example
input:2.789
output:2.789
input:2
output:2.000
input:2.1
output:2.100
hope all of them understands the problem
i want to give an input a string as “2.07”
output should be “2.070”
another example
input:2.789
output:2.789
input:2
output:2.000
input:2.1
output:2.100
hope all of them understands the problem
This is a .Net question, not a UiPath question. You’d be better asking these kind of questions on a .Net forum, or Stack Overflow.
In any case, String.Format(“{0:N3}”, Double.Parse(yourString)) should do it.
Hey emm,
You can try: number.ToString(“0.000”)
Thanks