Subbu,<div><br></div><div>Thanks it did help,  I got it to work, but I don&#39;t understand the following and not sure if it is a bug in Squeak or in my head.</div><div>I ran the three commands below in a workspace and don&#39;t understand why the first one failed</div>
<div><br></div><div><div>Transcript show: 2.54343  printShowingDecimalPlaces: 2   <font class="Apple-style-span" color="#FF0000">- Failed Message Not Understood</font></div><div>t2 := 2.54343 printShowingDecimalPlaces: 2 <font class="Apple-style-span" color="#006600">- OK</font></div>
<meta charset="utf-8"><div>Transcript show: t2 <span class="Apple-style-span" style="color: rgb(0, 102, 0); ">- OK showed 2.54 in Transcript</span></div><div><br>Stephen</div><div><span class="Apple-style-span" style="color: rgb(0, 102, 0); "><br>
</span></div><meta charset="utf-8"><br><div class="gmail_quote">On Sun, Feb 27, 2011 at 9:11 PM, K. K. Subramaniam <span dir="ltr">&lt;<a href="http://kksubbu.ml">kksubbu.ml</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Friday 25 Feb 2011 12:07:42 pm Steve Thomas wrote:<br>
&gt; How do I print integers or specify that I only want 2 digits to the right<br>
&gt; of the decimal point? (Below is my script).<br>
&gt; script1<br>
&gt;<br>
&gt; | tmpStr |<br>
&gt;<br>
&gt; tmpStr := &#39;Im a Bot.\My position is: &#39; withCRs , self getLocation<br>
&gt; printString , &#39;\and my direction is:&#39; withCRs , self getHeading<br>
&gt; printString. self sayText: tmpStr<br>
<br>
</div>see printShowingDecimalPlaces: in Integer&gt;&gt;printing category. Also search for<br>
&#39;places&#39; in message window for other options.<br>
<br>
HTH .. Subbu<br>
</blockquote></div><br></div>