Formatted numeric output: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: changed a comment, added a comment. -- ~~~~ |
|||
Line 1,220:
=={{header|Smalltalk}}==
{{works with|Pharo 1.1.1}}
<lang smalltalk>Transcript show: (7.125 printPaddedWith: $0 to: 3.6); cr.
"output: 007.125000"</lang>▼
{{works with|Smalltalk/X}}
▲"output: 007.125000"
<lang smalltalk>(7.123 asFixedPoint:3) printOn: Transcript leftPaddedTo: 10 with: $0
"output: 000007.125"
</lang>
|