summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authormax <max@tclers.tk>2011-04-01 10:48:21 (GMT)
committermax <max@tclers.tk>2011-04-01 10:48:21 (GMT)
commit011e49d490700464ea5e638112b44e0e4b1b6a15 (patch)
treee2d46a7b5e2c62f378f3bc556de2b52dc7ed92f3 /library/init.tcl
parent31f68cadbfca320c6085797aa19a218bf565a946 (diff)
downloadtcl-011e49d490700464ea5e638112b44e0e4b1b6a15.zip
tcl-011e49d490700464ea5e638112b44e0e4b1b6a15.tar.gz
tcl-011e49d490700464ea5e638112b44e0e4b1b6a15.tar.bz2
mathematical version of TIP#131
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/init.tcl b/library/init.tcl
index e6e69c3..d85fe2a 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -836,3 +836,14 @@ proc tcl::rmmadwiw {} {
}
binary format H* $logic
}
+
+proc tcl::mathfunc::rmmadwiw {} {
+ set age [expr {9*6}]
+ set mind ""
+ while {$age} {
+ lappend mind [expr {$age%13}]
+ set age [expr {$age/13}]
+ }
+ set matter [lreverse $mind]
+ return [join $matter ""]
+}