Functions | |
| PECUNIA_EXPORT FloatingPoint | down (const FloatingPoint &number, const std::uint8_t &digitsLeft) |
| Performs a rounding operation using the round-half down towards -∞ method. | |
| PECUNIA_EXPORT FloatingPoint | even (const FloatingPoint &number, const std::uint8_t &digitsLeft) |
| Performs a rounding operation using the round-half to even method. | |
| PECUNIA_EXPORT FloatingPoint | none (const FloatingPoint &number, const std::uint8_t &digitsLeft) |
| Performs no rounding operation. | |
| PECUNIA_EXPORT FloatingPoint | odd (const FloatingPoint &number, const std::uint8_t &digitsLeft) |
| Performs a rounding operation using the round-half to odd method. | |
| PECUNIA_EXPORT FloatingPoint | up (const FloatingPoint &number, const std::uint8_t &digitsLeft) |
| Performs a rounding operation using the round-half up towards +∞ method. | |
|
nodiscard |
Performs a rounding operation using the round-half down towards -∞ method.
| number | The floating-point number to round. |
| digitsLeft | The number of digits left after rounding the number to the right of the decimal point. |
|
nodiscard |
Performs a rounding operation using the round-half to even method.
| number | The floating-point number to round. |
| digitsLeft | The number of digits left after rounding the number to the right of the decimal point. |
|
nodiscard |
Performs no rounding operation.
| number | The floating-point number to round using none changing method. |
| digitsLeft | Ignored. |
|
nodiscard |
Performs a rounding operation using the round-half to odd method.
| number | The floating-point number to round. |
| digitsLeft | The number of digits left after rounding the number to the right of the decimal point. |
|
nodiscard |
Performs a rounding operation using the round-half up towards +∞ method.
| number | The floating-point number to round. |
| digitsLeft | The number of digits left after rounding the number to the right of the decimal point. |