I get 0.30 or 0.20 or 0.70
And I want to replace the second decimal place
I want
0.3 or 0.2 or 0.7
Anyone have some ideas ?
I get 0.30 or 0.20 or 0.70
And I want to replace the second decimal place
I want
0.3 or 0.2 or 0.7
Anyone have some ideas ?
Try using Int32 as DataType for your variable
I get the values from the JSON File, so I can not use that. Or is that possible ?
Hi,
Can you try the following expression?
System.Text.RegularExpressions.Regex.Match(yourString,"\d+\.\d").Value
Regards,
It works, thanks
@joey1231, Just an update instead of using Int32, it will round off the value, simply you can use this expression CDbl("0.70").ToString
→ returns 0.7, instead of going with Regex!
Yes, it works. Thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.