Formatted numeric output: Difference between revisions

Content added Content deleted
mNo edit summary
imported>Maxima enthusiast
No edit summary
Line 1,605: Line 1,605:
<syntaxhighlight lang="matlab">>> disp(sprintf('%09.3f',7.125))
<syntaxhighlight lang="matlab">>> disp(sprintf('%09.3f',7.125))
00007.125</syntaxhighlight>
00007.125</syntaxhighlight>

=={{header|Maxima}}==
{{trans|Common Lisp}}
<syntaxhighlight lang="maxima">
printf(false,"~9,3,,,'0F",7.125);
</syntaxhighlight>
{{out}}
<pre>
"00007.125"
</pre>


=={{header|Mercury}}==
=={{header|Mercury}}==