How to read specific digit of an INT variable?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Contact:

How to read specific digit of an INT variable?

Post by hyperion007 »

How would one best go about this problem?

Let's say INT_var = 12345

Now how do I take that and turn it into this:
These are all byte variables.

Digit0 = 5
Digit1 = 4
Digit2 = 3
Digit3 = 2
Digit4 = 1

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8922
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: How to read specific digit of an INT variable?

Post by medelec35 »

Hi hyperion007
This post should help.

Martin
Martin

Post Reply