Replace second place

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 ?


Can you try the following expression?



It works, thanks :slight_smile:

1 Like

@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

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.