Decimal floating-point built-in functions

Decimal floating-point (DFP) built-in functions are grouped into the following categories:
  • Absolute value functions
  • Comparison functions
  • Comparison functions
  • Conversion functions
  • Exponent functions
  • NaN functions
  • Register transfer functions
  • Rounding functions
  • Test functions

For binary floating-point built-in functions, see Binary floating-point built-in functions

When -qarch is set to pwr6, pwr6e, or later POWER® processors, -qfloat=nodfpemulate becomes the default. This means that DFP hardware instructions are generated. Lower-performance software emulation code is generated only when:
  • -qarch is set to pwr5.
  • -qarch is set to pwr6, pwr6e, or later processors, and -qfloat=dfpemulate is enabled
Note: C++ only In the prototypes given in the following sections, the C keyword _Bool is used by convention to represent a Boolean type.


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us