NWstrmoney

Returns the locale-sensitive money format for a numerical value

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Internationalization

Syntax

  #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); 
  
  

Pascal Syntax

  uses netwin32 
   
  Function NWstrmoney 
    (buffer : pnstr; 
     Value : NUMBER_TYPE 
  ) : pnstr; 
  
  

Parameters

buffer
(OUT) Points to the number formatted for a specific country.
Value
(IN) Specifies the number to format.

Return Values

Returns a pointer to string.

Remarks

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 
  
  

See Also

NWLsetlocale, NWstrImoney