Previous Topic

Next Topic

Book Contents

Book Index

BFNUM – Convert Formatted Numbers

The BFNUM process changes numbers from various non-European formats (for example, 1,000, 1,000.00, $1000 or 1,000CR) to standard mathematical format (1000.00 or –1000.00) for purposes of calculation and comparison.

Formats accepted by the BFNUM process are:

Note: In non-European format, the decimal separator is a period and the thousands separator is a comma. In European format, the usage of period and comma are reversed. To convert European format numbers, see BFNUME – Convert European Style Numbers.

The BFNUM process is performed according to the following steps:

  1. Blanks, commas, dollar signs, cent signs, and asterisks are removed from the extracted data.
  2. Control-M/Analyzer determines if the number is negative or positive. A number is negative if:

    A number is positive if:

  3. If the result is blank, Control-M/Analyzer assumes the number is zero.
  4. If the number starts with a decimal point, Control-M/Analyzer inserts a zero before the decimal point (for example, .75 is modified to 0.75).

    Table 227 BFNUM – Convert Formatted Numbers Example

    PROCESS Name

    Input

    Output

    BFNUM

    123.45

    123.45

    BFNUM

    (1,345.2)

    -1345.2

    BFNUM

    $***.12CR

    -0.12

    BFNUM

    $**1,344,567.23CR

    -1344567.23

Parent Topic

DO EXTRACT Processes