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

	<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>2009-02-19T05:26:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2009-02-19T05:25:34-04:00</updated>

		<published>2009-02-19T05:25:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87460#p87460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87460#p87460"/>
		<title type="html"><![CDATA[[soved]formatting numbers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87460#p87460"><![CDATA[
it works,<br><br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Thu Feb 19, 2009 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-02-18T21:53:41-04:00</updated>

		<published>2009-02-18T21:53:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87456#p87456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87456#p87456"/>
		<title type="html"><![CDATA[[soved]formatting numbers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87456#p87456"><![CDATA[
Check out the "commas" proc from <a href="http://wiki.tcl.tk/1591" class="postlink">http://wiki.tcl.tk/1591</a><br><blockquote class="uncited"><div> %commas 123456789     ;# naturally, it defaults for use with large decimal integers<br> 123,456,789</div></blockquote><div class="codebox"><p>Code: </p><pre><code> proc {commas} {var {num 3} {char ","}} {    set len   [string length $var]    set first [expr $len - $num]    set x     ""    while { $len &gt; 0} {# grab left num charsset lef [string range $var $first end]if {[string length $x] &gt; 0} {    set x   "${lef}$char${x}"} else {    set x   ${lef}}# grab everything except left num charsset var [string range  $var 0 [expr $first -1]]set len   [string length $var]set first [expr $len - $num]    }    return $x }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Wed Feb 18, 2009 9:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2009-02-19T05:26:32-04:00</updated>

		<published>2009-02-18T05:48:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87432#p87432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87432#p87432"/>
		<title type="html"><![CDATA[[soved]formatting numbers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87432#p87432"><![CDATA[
Hi,<br><br>I'm looking for a away to format a number from <em class="text-italics">1234567890</em> to <em class="text-italics">1,234,567,890</em><br><br>I already tried [format "%5.3f" $number] and similar versions, but I cannot find the right way.<br><br><br>thanks for your help,<br><br>tueb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Wed Feb 18, 2009 5:48 am</p><hr />
]]></content>
	</entry>
	</feed>
