Page 1 of 1

conversion between byte and integer to print

Posted: Tue Aug 08, 2017 2:25 pm
by go233
Hello,
I would like to print on the display a variable byte.
how can I convert it to integer? and use PrintNumber
the display print strange numbers ....
Thanks
Giovanni

Re: conversion between byte and integer to print

Posted: Tue Aug 08, 2017 2:29 pm
by Benj
Hello Giovanni,

The PrintNumber function can take a byte or an integer variable directly, no conversion is required.

The only time you need to do conversion is if you are dealing with say a number inside an ASCII string.

Re: conversion between byte and integer to print

Posted: Thu Aug 10, 2017 11:36 am
by go233
thanks
Giovanni
:wink: