Hi All,
I believe it must be a simple solution for my case.
I have a value 55000,0694 or 550,3608
My point is to keep only three digits after the comma and have 55000,069 or 550,360
Please advise
Gosia
Hi All,
I believe it must be a simple solution for my case.
I have a value 55000,0694 or 550,3608
My point is to keep only three digits after the comma and have 55000,069 or 550,360
Please advise
Gosia
If MyVal
is a String datatype containing your comma value, then use MyVal.Split(","c)(1).Substring(0, 3)
.
Hi,
Here is another solution.
System.Text.RegularExpressions.Regex.Match(strData,"\d+,\d{0,3}").Value
Regards,