Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
100 <strong>Prism</strong> User s <strong>Guide</strong><br />
If the right-hand side does not have the same type as the left-hand side, <strong>Prism</strong><br />
performs the proper type coercion.<br />
5.7 Changing the Radix of Data<br />
Use the command value - base to change the radix of a value in <strong>Prism</strong>. The value<br />
can be a decimal, hexadecimal, or octal number. Precede hexadecimal numbers<br />
with Ox; precede octal numbers with 0 (zero). The base can be D (decimal), X<br />
(hexadecimal), or 0 (octal). <strong>Prism</strong> prints the converted value in the command<br />
window.<br />
For example, to convert 100 (hex) to decimal, issue this command:<br />
0xl00D<br />
<strong>Prism</strong> responds:<br />
256<br />
Version 1.2, March 1993<br />
Copyright © 1993 Thinking Machines Corporation