Extract string and convert long number and add 1

Hello.
My problem is that from a web I extract (“999912211280001”) and this number I need to put it in a loop to add 1 to it in each turn.
I can’t add the 1 to it, I extract and convert it, but it doesn’t add, I have it as a BIGINTEGER

any ideas??

Thanks

Hi @Aguirre ,

Your output will be? Can you share me the sample output.

Thanks!

Hi,

How about to use Decimal.Parse as the following?

image

Decimal.Parse(yourString)+1

Regards,

1 Like

Hello @Yoichi and thank you very much, it works, but I have a problem. What type of variable does it assign?
I get int32 and bigint error

Hello, I have put a screenshot, which shows that this is the case, it would be correct, but I need to store it and I don’t know the type

Hi,

Can you set Decimal type? (System.Decimal)

Regards

Perfect @Yoichi , it was what I needed. Thanks a lot.

1 Like

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