Hello!
I have this string: “0,12345”, “0,123”, “0,1”
How can this be converted into: “0,1234 or 0.1234” ; “0,1230 or 0.1230”, “0,1000 or 0.1000”
Hello!
I have this string: “0,12345”, “0,123”, “0,1”
How can this be converted into: “0,1234 or 0.1234” ; “0,1230 or 0.1230”, “0,1000 or 0.1000”
Hey,
You can use
Strvar. Replace(“,”, “.”)
Where Strvar is a string variable.
Thanks
In addition to that do implement the below code to get four decimal values.
StrVar.ToString(“0.0000”)
Not working
Hey,
What are you getting
Please attach the screenshot. It will help
Thanks
Hey,
Follow this
Step 1- Strvar. Replace(“,”, “.”)
Step 2 -StrVar.ToString(“0.0000”)
Thanks
Same error
Hey,
use this workflow
Sample2.xaml (7.2 KB)
sorry for delay
Thanks
Hi @Andrei_Croitoru ,
Try this Convert.ToDecimal(“12389.254”).ToString(“#,##0.00000”)