Formatted numeric output: Difference between revisions
Content added Content deleted
No edit summary |
(Add min) |
||
Line 1,373: | Line 1,373: | ||
io.format("%09.3f\n", [f(7.125)], !IO). |
io.format("%09.3f\n", [f(7.125)], !IO). |
||
</lang> |
</lang> |
||
=={{header|min}}== |
|||
{{works with|min|0.19.6}} |
|||
<lang min>(quote cons "" join) :str-append |
|||
(pick length - repeat swap str-append) :left-pad |
|||
7.125 string "0" 9 left-pad puts!</lang> |
|||
{{out}} |
|||
<pre> |
|||
00007.125 |
|||
</pre> |
|||
=={{header|Modula-3}}== |
=={{header|Modula-3}}== |