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
Has thanked: 49 times
Been thanked: 101 times
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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

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

Post by medelec35 »

Hi hyperion007
This post should help.

Martin
Martin

Post Reply