conversion between byte and integer to print

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

go233
Posts: 96
Joined: Mon Mar 02, 2015 12:32 pm
Has thanked: 5 times
Been thanked: 11 times
Contact:

conversion between byte and integer to print

Postby go233 » Tue Aug 08, 2017 2:25 pm

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

User avatar
Benj
Matrix Staff
Posts: 12906
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 3681 times
Been thanked: 3533 times
Contact:

Re: conversion between byte and integer to print

Postby Benj » Tue Aug 08, 2017 2:29 pm

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.

go233
Posts: 96
Joined: Mon Mar 02, 2015 12:32 pm
Has thanked: 5 times
Been thanked: 11 times
Contact:

Re: conversion between byte and integer to print

Postby go233 » Thu Aug 10, 2017 11:36 am

thanks
Giovanni
:wink: