Ignore:
Timestamp:
Oct 28, 2014, 12:30:20 PM (11 years ago)
Author:
Alex Taylor
Message:

Implemented Sys2FormatNumber() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rxutilex/trunk/FUNCTIONS

    r20 r21  
    99Sys2DisconnectNamedPipe     - Acknowledge that a named pipe session has ended
    1010Sys2DropFuncs               - Deregister all functions
     11Sys2FormatNumber            - Format a number with thousands-grouping characters
    1112Sys2FormatTime              - Format calender time (strftime wrapper)
    1213Sys2GetClipboardText        - Retrieve the current clipboard text
     
    146147REXX ARGUMENTS:    None
    147148REXX RETURN VALUE: ""
     149
     150
     151-------------------------------------------------------------------------
     152Sys2FormatNumber                                                         
     153                                                                         
     154Formats a number to use thousands-grouping characters.  The system values
     155for the current locale are used for the thousands-grouping character and
     156the decimal place, if any.  Note that the IBM C runtime's built-in locale
     157definitions are used; these may not correspond precisely to the system
     158locales as defined in the OS/2 Locale object.
     159
     160The input number may be a positive or negative integer or floating point
     161value.  It must be a simple, non-localized number value; in other words,
     162it must not contain any thousands-grouping characters, and any decimal
     163point which it contains must be a period (rather than any localized
     164decimal symbol).
     165                                                                         
     166REXX ARGUMENTS:                                                         
     167  1. Number to be formatted.                                  (REQUIRED)
     168  2. Number of decimal places to use for floating point values. 
     169     Ignored for integer values.                            (DEFAULT: 2)
     170                                                                         
     171REXX RETURN VALUE: The formatted number, or '' on error.                 
    148172
    149173
Note: See TracChangeset for help on using the changeset viewer.