[Oberon] CHAR to/from BYTE conversion

Srinivas Nayak sinu.nayak2001 at gmail.com
Wed Jul 6 15:59:53 CEST 2016


We have ORD() and CHR().
ORD() converts CHAR to INTEGER.
CHR() converts INTEGER to CHAR.

How to convert BYTE to/from CHAR ?

Can a CHAR byte hold -ve values? Seems not...
BYTE also represents values from 0 to 255.
Then what is the difference between BYTE and CHAR?

We say, BYTE and INTEGER are compatible;
If we assign -12 to a BYTE, what will happen?

Kindly help me understanding these.


With thanks and best regards,

Yours sincerely,
Srinivas Nayak

Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.in/


More information about the Oberon mailing list