<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/8137" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-08-23T06:05:45-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/8137</id>

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-23T06:05:45-04:00</updated>

		<published>2004-08-23T06:05:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40058#p40058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40058#p40058"/>
		<title type="html"><![CDATA[Rounding to x places?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40058#p40058"><![CDATA[
<blockquote class="uncited"><div>%2f = 2 decimal places</div></blockquote>Nope.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Aug 23, 2004 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T00:03:34-04:00</updated>

		<published>2004-08-23T00:03:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40032#p40032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40032#p40032"/>
		<title type="html"><![CDATA[Rounding to x places?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40032#p40032"><![CDATA[
Actually its the same as in C, if you take a closer look.<br><br>%2f = 2 decimal places<br>%3f = 3 decimal places... and so on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 23, 2004 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DayCuts]]></name></author>
		<updated>2004-08-22T15:13:25-04:00</updated>

		<published>2004-08-22T15:13:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40011#p40011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40011#p40011"/>
		<title type="html"><![CDATA[Rounding to x places?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40011#p40011"><![CDATA[
Ah, thank you user.  I guess i just didn't relate format to string/math manipulation.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5073">DayCuts</a> — Sun Aug 22, 2004 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-22T14:27:55-04:00</updated>

		<published>2004-08-22T14:27:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40009#p40009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40009#p40009"/>
		<title type="html"><![CDATA[Rounding to x places?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40009#p40009"><![CDATA[
<a href="http://tcl.tk/man/tcl8.5/TclCmd/format.htm" class="postlink">format</a> %.&lt;number of decimals&gt;f &lt;value&gt;<br>eg:<div class="codebox"><p>Code: </p><pre><code>format %.2f 4.567</code></pre></div> returns 4.57<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Aug 22, 2004 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DayCuts]]></name></author>
		<updated>2004-08-21T12:53:58-04:00</updated>

		<published>2004-08-21T12:53:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39964#p39964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39964#p39964"/>
		<title type="html"><![CDATA[Rounding to x places?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39964#p39964"><![CDATA[
I have looked through the tcl/tk help and tried using expr round(), this works of corse.  However i seem unabled to round accurately to a specific X places.  I have seen in a few places people use things such as [expr round(9.345) * 1.0] or similar things, but such workarounds are not very accurate as you can see simply by looking at the logic in the math.<br><br>Can anybody help me out with a more accurate method of rounding?  TIA<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5073">DayCuts</a> — Sat Aug 21, 2004 12:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
