Back: I18N.LcMessagesTerritoryDomain class-instance creation Up: Iconv/I18N packages Forward: I18N.LcMonetary class-accessing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

5.16 I18N.LcMonetary

Defined in namespace I18N
Superclass: I18N.LcNumeric
Category: i18n-Printing
Sending either #?, #printString: or #print:on: converts a Number to a String according to the rules that are mandated by ISO for printing currency amounts in the current locale.

5.16.1 I18N.LcMonetary class: accessing  (class)
5.16.2 I18N.LcMonetary: printing  (instance)


5.16.1 I18N.LcMonetary class: accessing

category
Answer the environment variable used to determine the default locale

selector
Answer the selector that accesses the receiver when sent to a Locale object.


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.



Back: I18N.LcMonetary class-accessing Up: I18N.LcMonetary Forward: I18N.LcMonetaryISO   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html