|
FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
|
FDL rounding functions (round, round_dimensions, round_point) using banker's rounding. More...
Functions | |
| int64_t | fdl_round (double value, fdl_rounding_even_t even, fdl_rounding_mode_t mode) |
| Round a single value according to FDL rounding rules. | |
| fdl_dimensions_f64_t | fdl_round_dimensions (fdl_dimensions_f64_t dims, fdl_rounding_even_t even, fdl_rounding_mode_t mode) |
| Round dimensions according to FDL rounding rules. | |
| fdl_point_f64_t | fdl_round_point (fdl_point_f64_t point, fdl_rounding_even_t even, fdl_rounding_mode_t mode) |
| Round a point according to FDL rounding rules. | |
FDL rounding functions (round, round_dimensions, round_point) using banker's rounding.
| int64_t fdl_round | ( | double | value, |
| fdl_rounding_even_t | even, | ||
| fdl_rounding_mode_t | mode | ||
| ) |
Round a single value according to FDL rounding rules.
| value | The floating-point value to round. |
| even | Even constraint (FDL_ROUNDING_EVEN_WHOLE or _EVEN). |
| mode | Rounding direction (FDL_ROUNDING_MODE_UP, _DOWN, or _ROUND). |
| fdl_dimensions_f64_t fdl_round_dimensions | ( | fdl_dimensions_f64_t | dims, |
| fdl_rounding_even_t | even, | ||
| fdl_rounding_mode_t | mode | ||
| ) |
Round dimensions according to FDL rounding rules.
| dims | Dimensions to round. |
| even | Even constraint. |
| mode | Rounding direction. |
| fdl_point_f64_t fdl_round_point | ( | fdl_point_f64_t | point, |
| fdl_rounding_even_t | even, | ||
| fdl_rounding_mode_t | mode | ||
| ) |
Round a point according to FDL rounding rules.
| point | Point to round. |
| even | Even constraint. |
| mode | Rounding direction. |