NWstrImoney(3nw)


NWstrImoney -- gets country prefix and money format for numerical value

Synopsis

   #include <time.h> or #define NWL_EXCLUDE_TIME 
   #include <stdio.h> or #define NWL_EXCLUDE_FILE 
   #include <nwlocale.h> 
   

char NWFAR *NWAPI NWstrImoney (char NWFAR *buffer, NUMBER_TYPE Value);

Description

The parameters are as follows:

buffer
(OUT) Points to the number formatted for a specific country in the international format.

Value
(IN) Specifies the number to format.

Return values

Pointer to string.

Notices

NWstrImoney has no ANSI counterpart.

The last 2 or 3 (some locales) digits of Value are always formatted as the smallest money units for that locale. The type of this variable is double.

NWstrImoney is different from NWstrmoney; it provides one of the following country prefixes in buffer:

   BELGIUM       BEF 
   CANADA_FR     CAD 
   DENMARK       DKK 
   FINLAND       FIM 
   FRANCE        FRF 
   GERMANY       DDM 
   ITALY         ITL 
   NETHERLANDS   NLG 
   NORWAY        NOK 
   PORTUGAL      PTE 
   SPAIN         ESP 
   SWEDEN        SEK 
   SWITZERLAND   SFR 
   UK            GBP 
   USA           USD 
   JAPAN         JPY 
   KOREA         KRW 
   PRC           CNY 
   TAIWAN        TWD 

Examples:

   locale      number      formatted value 
   US          1234         USD 12.34 
   FRANCE      1234         FRF 12,34 
For example, if country code 033 (France) were used and 3498 is passed in Value, the output string would be ``FRF 34,98''.

Services

Internationalization

NCP calls

None

References

NWLsetlocale(3nw), NWstrmoney(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.