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

	<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-05-29T11:21:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-29T11:21:29-04:00</updated>

		<published>2004-05-29T11:21:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36720#p36720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36720#p36720"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36720#p36720"><![CDATA[
s'alright..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 29, 2004 11:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-29T11:18:04-04:00</updated>

		<published>2004-05-29T11:18:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36719#p36719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36719#p36719"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36719#p36719"><![CDATA[
yes ur right but i just wanted to know if there was a lib for this or that i just could use those procs .. cause its in a lib (tcllib) then it would be stupid to copy it then i just could do package require<br><br>i always wana make sur sorry for the stupid questions<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat May 29, 2004 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-29T11:15:54-04:00</updated>

		<published>2004-05-29T11:15:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36717#p36717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36717#p36717"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36717#p36717"><![CDATA[
Even still, assumedly, you know Tcl, and can see the procs there matching the commands that you know don't exist in stock Tcl language...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 29, 2004 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-29T11:14:29-04:00</updated>

		<published>2004-05-29T11:14:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36716#p36716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36716#p36716"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36716#p36716"><![CDATA[
oh ok sorry  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat May 29, 2004 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-29T11:14:04-04:00</updated>

		<published>2004-05-29T11:14:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36715#p36715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36715#p36715"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36715#p36715"><![CDATA[
yes most of it anyway but i am not that good with technical english words ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat May 29, 2004 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-29T11:13:17-04:00</updated>

		<published>2004-05-29T11:13:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36714#p36714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36714#p36714"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36714#p36714"><![CDATA[
Did you actually read that page? You would have answered your own question and saved us both time...<br><blockquote class="uncited"><div>&lt;snip&gt;<br>^- <strong class="text-strong">So from the routines there</strong>, you can construct your pow function as such<br>&lt;snip&gt;</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 29, 2004 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-29T10:54:53-04:00</updated>

		<published>2004-05-29T10:54:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36711#p36711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36711#p36711"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36711#p36711"><![CDATA[
hmm is it a lib i should load or .. cause those cmds do not exist (tolist, ..) or should i copy the procs from that page ..<br><br>hmm what i mean is is that a lib ..?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat May 29, 2004 10:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-29T10:00:02-04:00</updated>

		<published>2004-05-29T10:00:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36709#p36709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36709#p36709"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36709#p36709"><![CDATA[
From the expr manpage entry:<br><blockquote class="uncited"><div> The global variable tcl_precision determines the number of significant digits that are retained when floating values are converted to strings (except that trailing zeroes are omitted). If tcl_precision is unset then 6 digits of precision are used. <strong class="text-strong">To retain all of the significant bits of an IEEE floating-point number set tcl_precision to 17; if a value is converted to string with 17 digits of precision and then converted back to binary for some later calculation, the resulting binary value is guaranteed to be identical to the original one.</strong></div></blockquote>Also see:<br><a href="http://wiki.tcl.tk/683" class="postlink">http://wiki.tcl.tk/683</a><br><br>^- So from the routines there, you can construct your pow function as such:<div class="codebox"><p>Code: </p><pre><code>proc pow {num pow} {   set b [tolist 1]   set num [tolist $num]  for {set i 0} {$i &lt; $pow} {incr i} {     set b [multa $b $num]   }   fromlist $b }</code></pre></div><blockquote class="uncited"><div>% pow 2 4<br>16<br>% pow 14 20<br>83668255425284801560576</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 29, 2004 10:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-05-29T09:32:18-04:00</updated>

		<published>2004-05-29T09:32:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36707#p36707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36707#p36707"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36707#p36707"><![CDATA[
i would consider using bc instead of tcl for this. large numbers should be no problem.<br><br>$ echo 5^100 | bc<br>7888609052210118054117285652827862296732064351090230047702789306640625<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sat May 29, 2004 9:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-05-28T19:55:20-04:00</updated>

		<published>2004-05-28T19:55:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36691#p36691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36691#p36691"/>
		<title type="html"><![CDATA[expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36691#p36691"><![CDATA[
how can i do powers without having expr pow(x,y) using scientific notifications cause i am working with huge figurs and it must be accurant<br><div class="codebox"><p>Code: </p><pre><code>proc pow {e arg} {  for {set i 0} {$i &lt;= $e} {incr i} {    if {[info exists expr]} {      set expr [expr $expr*$arg]    } else {      set expr 1    }  }  return $expr}</code></pre></div>i got this but it isn't able to handle big numbers ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri May 28, 2004 7:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
