NWstrnum

Formats a number for a specific country and returns the number in a string

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 NWstrnum  ( 
     pnstr         buffer,  
     NUMBER_TYPE   Value); 
  
  

Pascal Syntax

  uses netwin32 
   
  Function NWstrnum 
    (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 (long).

Return Values

Returns a pointer to the string parameter.

Remarks

If country code 033 (France) was used and 3498 was passed in the Value parameter, NWStrnum will return 3.498.

Examples:

  locale      number      formatted value
  
  US          1234            1,234 
  FRANCE      1234            1.234 
  
  

See Also

NWLsetlocale