[3893] in Athena Bugs

home help back first fref pref prev next nref lref last post

Controlling the integer format in Saber

daemon@ATHENA.MIT.EDU (Barr3y Jaspan)
Thu Jan 4 15:03:45 1990

Date: Thu, 4 Jan 90 15:03:26 -0500
From: Barr3y Jaspan <bjaspan@ATHENA.MIT.EDU>
To: jtkohl@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU

>I'd like an option to control the output format of integers; I occasionally
>want to have them print out in hexadecimal, and I would prefer not to
>need to use printf() to examine such variables.

I don't know if it is an intended feature, but you can control the
output format of integers in Saber by casting to the appropriate type.
For example,

1 -> (int) 1000;
(int) 1000
2 -> (unsigned) 1000;
(unsigned int) 0x3e8

Barr3y

home help back first fref pref prev next nref lref last post