Formatted numeric output: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→{{header|8086 Assembly}}: added output) |
m (Put output into comment) |
||
Line 855: | Line 855: | ||
=={{header|Emacs Lisp}}== |
=={{header|Emacs Lisp}}== |
||
<lang Lisp>(format "%09.3f" 7.125) |
<lang Lisp>(format "%09.3f" 7.125) ;=> "00007.125"</lang> |
||
=> |
|||
"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]. |
<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]. |