Previous: , Up: I18N.LcMonetary   [Index]


5.16.2 I18N.LcMonetary: printing

print: aNumber on: aStream

Print aNumber on aStream according to the receiver’s formatting conventions. Always print a currency sign and don’t force to print negative numbers by putting parentheses around them.

print: aNumber on: aStream currency: currency parentheses: p

Print aNumber on aStream according to the receiver’s formatting conventions. If currency is true, print a currency sign, and if p is true force to print negative numbers by putting parentheses around them. If p is true, for positive numbers spaces are put around the number to keep them aligned.