Formatted numeric output: Difference between revisions
Content added Content deleted
(Add entry for Beads language) |
|||
Line 391: | Line 391: | ||
Binary: 00111.001</pre> |
Binary: 00111.001</pre> |
||
=={{header|Beads}}== |
|||
<lang Beads>beads 1 program 'Formatted numeric output' |
|||
calc main_init |
|||
var num = 7.125 |
|||
log to_str(num, min:9, zero_pad:Y)</lang> |
|||
{{out}} |
|||
<pre>00007.125</pre> |
|||
=={{header|C}}== |
=={{header|C}}== |
||
<lang c>#include <stdio.h> |
<lang c>#include <stdio.h> |