Simple-Utility v2.3.1
|
Classes | |
struct | sl::math::remquo_result< T > |
Result type for the remquo operation. More... | |
struct | sl::math::frexp_result< T > |
Result type for the frexp operation. More... | |
struct | sl::math::modf_result< T > |
Result type for the modf operation. More... | |
Functions | |
template<class T > | |
sl::math::remquo_result (T, int) -> remquo_result< T > | |
Manual deduction guide for the remquo_result type. | |
template<class T > | |
sl::math::frexp_result (T, int) -> frexp_result< T > | |
Manual deduction guide for the frexp_result type. | |
Variables | |
constexpr auto | sl::math::remquo |
Computes the floating-point remainder of the division operation x/y. Additionally, the sign and at least the three of the last bits of x/y will be determined, sufficient to determine the octant of the result within a period. | |
constexpr auto | sl::math::frexp |
Decomposes given floating point value into a normalized fraction and an integral power of two. | |
constexpr auto | sl::math::modf |
Decomposes given floating point value into integral and fractional parts, each having the same type and sign as the original value. | |
sl::math::frexp_result | ( | T | , |
int | |||
) | -> frexp_result< T > |
Manual deduction guide for the frexp_result
type.
T | Used floating point type. |
sl::math::remquo_result | ( | T | , |
int | |||
) | -> remquo_result< T > |
Manual deduction guide for the remquo_result
type.
T | Used floating point type. |
|
constexpr |
Decomposes given floating point value into a normalized fraction and an integral power of two.
T | Used floating point type |
value | The value to decompose. |
frexp_result
type.This function is a more convenient version of the std::frexp
function and simply forwards the call to that.
|
constexpr |
Decomposes given floating point value into integral and fractional parts, each having the same type and sign as the original value.
T | Used floating point type |
value | The value to decompose. |
modf_result
type.This function is a more convenient version of the std::modf
function and simply forwards the call to that.
|
constexpr |
Computes the floating-point remainder of the division operation x/y. Additionally, the sign and at least the three of the last bits of x/y will be determined, sufficient to determine the octant of the result within a period.
x | First floating point value. |
y | Second floating point value. |
remquo_result
type.This function is a more convenient version of the std::remquo
function and simply forwards the call to that.