1.9.7 LC_NUMERIC data block

The LC_NUMERIC data block configures formatting of numeric values that are not monetary.

When defining a locale data block in the C library, the macros that define an LC_NUMERIC data block are as follows:

  1. Call LC_NUMERIC_begin with a symbol name and a locale name.

  2. Call the LC_NUMERIC data macros as follows:

    1. Call LC_NUMERIC_point with one argument: decimal_point from lconv structure.

    2. Call LC_NUMERIC_thousands with one argument: thousands_sep.

    3. Call LC_NUMERIC_grouping with one argument: grouping.

  3. Call LC_NUMERIC_end, without arguments, to finish the locale block definition.

Example LC_NUMERIC data block

        LC_NUMERIC_begin c_numeric, "C"
        LC_NUMERIC_point "."
        LC_NUMERIC_thousands ""
        LC_NUMERIC_grouping ""
        LC_NUMERIC_end
Non-ConfidentialPDF file icon PDF versionARM DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.