Having Issues Converting String to Integer

i’m having issues with converting a string to int32, if i save an integer like “123.00” as string and use a isnumeric function to check if it’s an integer or not, i used an if condition because isnumeric is boolean but during one of the conditions i get an error when converting the string to an integer

@moyo_Olajide

Welcome to our uipath community.

Use CInt to convert String to Integer.

        CInt(inputStr)
1 Like

Cint(“123.00”)
did we try like this??

You can also try Int32.Parse(inputString)

Welcome to the community!
integer cannot have decimal places so for that you should use Decimal type…

thank you for all your replies but apparently you convert to a double not an integer

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