Page 1 of 1
convert hex to integer { Solved}
Posted: Fri Apr 09, 2021 4:45 pm
by steve001
Evening all,
is there a command / macro to convert hex to integer in v9 ?
Steve
Re: convert hex to integer
Posted: Fri Apr 09, 2021 4:56 pm
by stefan.erni
Hi Steve
I'm not sure if you ask this.
your_variable = 0x4C
regards
Stefan
Re: convert hex to integer
Posted: Fri Apr 09, 2021 5:27 pm
by steve001
Hi Stefan
I want to convert a returned hex value to a number
Is there a command, macro in V9 ?
Steve
Re: convert hex to integer
Posted: Fri Apr 09, 2021 5:44 pm
by stefan.erni
Hi Steve
You mean you receive 2 ascii char like 4C and convert it in an integer like 76?
Re: convert hex to integer
Posted: Fri Apr 09, 2021 7:45 pm
by steve001
yes that's what i want to do
Re: convert hex to integer { Solved }
Posted: Sun Apr 11, 2021 5:25 pm
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
Steve