Jump to content

Formatted numeric output: Difference between revisions

no edit summary
mNo edit summary
imported>Maxima enthusiast
No edit summary
Line 1,605:
<syntaxhighlight lang="matlab">>> disp(sprintf('%09.3f',7.125))
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}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.