The Toolkit for Online Communities
18830 Community Members, 0 members online, 1784 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : easy tcl question... : One Message

Forum OpenACS Q&A: Response to easy tcl question...

Posted by Louis Zirkel on
How about using something like this:
set i 7.14123
set j 3
set k [format "%.*f" $j $i]
Where you can set j to be any number of decimal places to pad to.