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

Post Reply
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

Post 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

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

Re: conversion between byte and integer to print

Post 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.

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

Post by go233 »

thanks
Giovanni
:wink:

Post Reply