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

	<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>2003-01-30T04:21:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-01-30T04:21:36-04:00</updated>

		<published>2003-01-30T04:21:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15951#p15951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15951#p15951"/>
		<title type="html"><![CDATA[is this possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15951#p15951"><![CDATA[
Ok i got that to work.  Thanks for your help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Thu Jan 30, 2003 4:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-30T01:58:53-04:00</updated>

		<published>2003-01-30T01:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15940#p15940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15940#p15940"/>
		<title type="html"><![CDATA[is this possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15940#p15940"><![CDATA[
Basically,<br><br>set gold_make [expr int ($gold_make) + $gold_new]<br><br>should be<br><br>set gold_make [expr $gold_make + $gold_new]<br><br>You'll have decimal points in your answer though! If you want to get rid of them, use something like:<br><br>regexp {^([^\.]*)} $gold_make x intpart<br><br>now $intpart is the gold with no decimal point. Hope it helps!<br><br>Oh ya, the big difference between floating point and integer is that floating point can have decimals.. but the *other* big difference is that floating point numbers can be huge, much much bigger than integers. As you can see with this example:<br><br>% set x 10000000000000<br>10000000000000<br>% expr $x<br>integer value too large to represent<br>% set x 10000000000000.0<br>10000000000000.0<br>% expr $x<br>1e+13<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jan 30, 2003 1:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-01-29T13:00:15-04:00</updated>

		<published>2003-01-29T13:00:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15925#p15925</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15925#p15925"/>
		<title type="html"><![CDATA[is this possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15925#p15925"><![CDATA[
i still don't understand how to get it to work that way.<br><br>how does it work, or where do i have to put it.<br><br>i don't know scripting at all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Wed Jan 29, 2003 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-29T04:38:52-04:00</updated>

		<published>2003-01-29T04:38:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15913#p15913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15913#p15913"/>
		<title type="html"><![CDATA[is this possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15913#p15913"><![CDATA[
Floating point, isn't a Tcl term.<br><br>It is used to discribe a type of number.<br><br>There are integers, which are whole numbers.<br><br>Floating point, which have a decimal point in.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jan 29, 2003 4:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-01-29T04:31:44-04:00</updated>

		<published>2003-01-29T04:31:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15912#p15912</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15912#p15912"/>
		<title type="html"><![CDATA[is this possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15912#p15912"><![CDATA[
I am not that good in tcl so i don't know what you mean with floating point.<br><br>any example that you can give me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Wed Jan 29, 2003 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-29T04:13:32-04:00</updated>

		<published>2003-01-29T04:13:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15910#p15910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15910#p15910"/>
		<title type="html"><![CDATA[is this possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15910#p15910"><![CDATA[
Anything's possible! First try using floating point instead of integer. (I.e. get rid of the int() part.) If that doesn't work find a "bignum" package for tcl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jan 29, 2003 4:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-01-08T14:16:33-04:00</updated>

		<published>2003-01-08T14:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15024#p15024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15024#p15024"/>
		<title type="html"><![CDATA[is this possible?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15024#p15024"><![CDATA[
Hi,<br><br>I have a script that is used for a online game.<br><br>People can use it to calculate money in their bank with the use of interest.<br><br>They put the gold in their bank account and also the hours they want to see. for example: "richard calc 7646383 5" where 5 is the hours.<br><br>The script i have does work, but has a maximum of 10 digits.<br><br>Also when 10 digits is used, it puts a - before the total.<br><br>Is there a way to make it so that it calculates people's gold witch are more than 10 digits?<br><br>The code is:<br><div class="codebox"><p>Code: </p><pre><code>            set gold_start [lindex $arg 1]             set gold_hours [lindex $arg 2]                        set check 1        set gold_make "$gold_start"        while {$check != [expr $gold_hours +1]} {          set gold_new [expr $gold_make * 0.01]          set gold_make [expr int ($gold_make) + $gold_new]                        set check [incr check]        }             putserv "PRIVMSG $channel :After $gold_hours hour(s) in the bank, $gold_start gold will be [expr int($gold_make)] gold."           } </code></pre></div>Regards mkluin<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Wed Jan 08, 2003 2:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
