Formatted numeric output: Difference between revisions
Content deleted Content added
Line 758: | Line 758: | ||
fixedprint(7.125, 5) --> 00007.125</lang> |
fixedprint(7.125, 5) --> 00007.125</lang> |
||
An easier way to do that would be |
|||
<lang Lua> |
|||
print(string.format("%09.3d",7.125)) |
|||
</lang> |
|||
=={{header|Mathematica}}== |
=={{header|Mathematica}}== |