Counting the number of returned digits

Hi all, I generate a number in to an int32 variable called ‘Number3’ and I want to count how many digits are returned in an out argument (so I can see the figure in Orchestrator, as practicing with input parameters and output values returned)

If the number is ‘567’ the output value would be 3 and ‘6467’ then 4 etc

What expression do I write. I’ve tried using .Length or .Count and .ToString but can’t get this to work.

Thanks
Jordan

@jordrowley give like this say the output is num now give as num.tostring.count in message box it will give you the output as expected

1 Like

@jordrowley

Try this:

yourInputNumber.Tostring.Length

1 Like

Thanks both for the solutions. I’d been putting .x.ToString as opposed to .ToString.x Ta!

1 Like

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