__d64_integral, __d128_integral

Purpose

Round to Integral

Rounds a decimal floating-point value to an integer, allowing an Inexact exception to be raised.

Prototype

_Decimal64 __d64_integral (_Decimal64);

_Decimal128 __d128_integral (_Decimal128);

Return value

The integer is returned in decimal floating-point format, rounded using the current rounding mode. Digits after the decimal point are discarded.