ibase and obase
- Subject: ibase and obase
- From: van Nek
- Date: Sun, 18 Jun 2006 20:54:20 +0200
--Alt-Boundary-27721.32512171
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Hello,
is this a bug or intended?
(%i1) [ibase:10,obase:16]$
(%i2) 100;
(%o2) 64
(%i3) 111;
(%o3) 6F
(%i4) [ibase:16,obase:10]$
(%i5) 64;
(%o5) 100
(%i6) 6F;Incorrect syntax: F is not an infix operator
6F;
^
(%i6) 6E;
Incomplete number. Missing exponent?
-- an error. Quitting. To debug this try debugmode(true);
Documentation:
When ibase is greater than 10, the numerals comprise the decimal numerals 0 through 9
plus capital letters of the alphabet A, B, C, ..., as needed.
This tells me that 6F and 6E should work, or do I misunderstand the documentation?
Volker
--Alt-Boundary-27721.32512171
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
</head>
<body>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Hello,</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">is this a bug or intended?</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%i1) [ibase:10,obase:16]$</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%i2) 100;</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%o2)                                            
64</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%i3) 111;</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%o3)                                            
6F</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%i4) [ibase:16,obase:10]$</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%i5) 64;</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%o5)                                            
100</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%i6) 6F;Incorrect syntax: F is not an infix operator</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">6F;</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"> ^</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">(%i6) 6E;</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Incomplete number.  Missing exponent?</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"> -- an error.  Quitting.  To debug this try debugmode(true);</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Documentation: </span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">When ibase is greater than 10, the numerals comprise the decimal numerals 0 through 9
plus capital letters of the alphabet A, B, C, ..., as needed. </span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">This tells me that 6F and 6E should work, or do I misunderstand the documentation?</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Volker</span></font></div>
</body>
</html>
--Alt-Boundary-27721.32512171--