How to find how many number after decimal

I have to find how many number after decimal
Eg:1.234 here there are 3 numbers so that ans is 3

Hi @sruthesanju ,

Try this.
image

test.xaml (5.3 KB)

Note: If value is in decimal then convert it to string.

@sruthesanju

You can find using split function
image

1 Like

You can try this One @sruthesanju

Hi @sruthesanju ,

You can also use regex here.
System.Text.RegularExpressions.Regex.Match(strTest,"(?<=[.])\S+").value

Now you have 4 approaches here :grinning: , choose any

Thanks.

hey @sruthesanju , can you mark the best suited solution from all above comments.

Thanks.