convert hex to integer { Solved}

For general Flowcode discussion that does not belong in the other sections.
Post Reply
steve001
Valued Contributor
Posts: 185
http://meble-kuchenne.info.pl
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

convert hex to integer { Solved}

Post by steve001 »

Evening all,

is there a command / macro to convert hex to integer in v9 ?

Steve

stefan.erni
Valued Contributor
Posts: 997
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 190 times
Been thanked: 217 times

Re: convert hex to integer

Post by stefan.erni »

Hi Steve
I'm not sure if you ask this.

your_variable = 0x4C


regards

Stefan

steve001
Valued Contributor
Posts: 185
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

Re: convert hex to integer

Post by steve001 »

Hi Stefan

I want to convert a returned hex value to a number

Is there a command, macro in V9 ?

Steve

stefan.erni
Valued Contributor
Posts: 997
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 190 times
Been thanked: 217 times

Re: convert hex to integer

Post by stefan.erni »

Hi Steve

You mean you receive 2 ascii char like 4C and convert it in an integer like 76?

steve001
Valued Contributor
Posts: 185
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

Re: convert hex to integer

Post by steve001 »

yes that's what i want to do

steve001
Valued Contributor
Posts: 185
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

Re: convert hex to integer { Solved }

Post by steve001 »

Was getting confused - old age setting in

i was looking at the debugger console following my results (didn't see the box ticked show integers as hex until after)
and also putting a 7 seg display on the 2D panel confirmed everything is correct.

I wont say how long i have wasted trying to sort that out :mrgreen:

Steve
Attachments
Capture - Copy.JPG
Capture - Copy.JPG (62.81 KiB) Viewed 4338 times

Post Reply