<?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/11171" />

	<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>2006-01-13T13:41:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TALES]]></name></author>
		<updated>2006-01-13T13:41:37-04:00</updated>

		<published>2006-01-13T13:41:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59375#p59375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59375#p59375"/>
		<title type="html"><![CDATA[round average]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59375#p59375"><![CDATA[
many tnx it worked<br><br>greets TALES<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4104">TALES</a> — Fri Jan 13, 2006 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-01-13T12:38:26-04:00</updated>

		<published>2006-01-13T12:38:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59373#p59373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59373#p59373"/>
		<title type="html"><![CDATA[round average]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59373#p59373"><![CDATA[
you must divide by 100.0<br>expr won't return float values from integer calculations.<br>You should read the manual till the bottom: <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/expr.htm#M47" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/expr.htm#M47</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Jan 13, 2006 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TALES]]></name></author>
		<updated>2006-01-13T12:26:37-04:00</updated>

		<published>2006-01-13T12:26:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59372#p59372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59372#p59372"/>
		<title type="html"><![CDATA[round average]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59372#p59372"><![CDATA[
im having trouble with the round() what i have is this:<div class="codebox"><p>Code: </p><pre><code>set outputcounter3 [expr (([join $outputmysql " + "] - $min - $max) / ($i - 2)) * 100]set outputcounter3 [expr round($outputcounter3)]</code></pre></div>what i have are some numbers in outputmysql like: <br>25.20 25.9 28.83 24.98 19.94 28.99 29.29 27.94 26.71 28.19 27.06 22.49<br><br>so i join "+" them to get them all calc. i do minus the $min and the $max and divide that with 10 i get an output of 29.5877777778 but i want 29.59 to be msg in channel so what i did was * 100 and round the number i get 2959 so i was thinking devide that with 100 i get 29.59 but no i get 29<br><br>what am i doing wrong ? and how do i get the right number 29.59<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4104">TALES</a> — Fri Jan 13, 2006 12:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
