Formatted numeric output: Difference between revisions

Content deleted Content added
→‎{{header|Lasso}}: Added Lasso contribution
add Emacs Lisp
Line 556: Line 556:
end
end
</lang>
</lang>

=={{header|Emacs Lisp}}==
<lang Lisp>(format "%09.3f" 7.125)
=>
"00007.125"</lang>

<code>format</code> is similar to C <code>sprintf</code>. See [http://www.gnu.org/software/emacs/manual/html_node/elisp/Formatting-Strings.html GNU Elisp manual on Formatting Strings].


=={{header|Erlang}}==
=={{header|Erlang}}==