<i>math rounding function with arbitrary decimal precision</i> status still Open with 4 other changes
by
.
D 2012-09-05T16:16:48
J icomment Why\scan\syou\snot\suse\s"format"\slike\sthis?\n%\sformat\s%.2f\s2.125\n2.13\n\nAnd\sif\syou\sreally\sneed\sa\smathematical\sfunction,\syou\scan\ssimple\screate\sit\sself,\ssomething\slike\sthis:\n%\sproc\s::tcl::mathfunc::roundup\s{n\se}\s{double\s[format\s%.${e}f\s$n]}\n%\sputs\s[expr\sroundup(\s2.555,\s2\s)]\n2.56\n\n
J login sebres
J mimetype text/plain
J username sebres
K 3564821fffffffffffffffffffffffffffffffff
U sebres
Z ae9a3e2a5847b62065b6bf458d809bfd