NWstrImoney
Returns the country prefix and money format for a numerical value
#include <time.h> or #define NWL_EXCLUDE_TIME
#include <stdio.h> or #define NWL_EXCLUDE_FILE
#include <nwlocale.h>
pnstr N_API NWstrImoney (
pnstr buffer,
NUMBER_TYPE Value);
uses netwin32
Function NWstrImoney
(buffer : pnstr;
Value : NUMBER_TYPE
) : pnstr;
Returns a pointer to string.
NWstrImoney has no ANSI counterpart.
The last 2 or 3 (some locales) digits of the Value parameter are always formatted as the smallest money units for that locale. The Value parameter is of the nint32 type.
NWstrImoney is different from the NWstrmoney function since it provides country prefixes in the buffer parameter.
The buffer parameter can have the following values:
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 the Value function, the output string would be "FRF 34,98".