RosettaCodeData/Task/Formatted-numeric-output/Tcl/formatted-numeric-output.tcl

3 lines
41 B
Tcl

set number 7.342
format "%08.3f" $number