NWstrmoney
Returns the locale-sensitive 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 NWstrmoney (
pnstr buffer,
NUMBER_TYPE Value);
uses netwin32
Function NWstrmoney
(buffer : pnstr;
Value : NUMBER_TYPE
) : pnstr;
Returns a pointer to string.
NWstrmoney has no ANSI counterpart. NWstrmoney is different from NWstrImoney ; it does not provide the country prefix in string.
The last 2 or 3 (some locales) digits of Value will always be formatted as the smallest money units for that locale. The type of this variable is long double.
Examples:
locale number formatted value
US 1234 $12.34
FRANCE 1234 p12,34