Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::math Namespace Reference

Classes

struct  frexp_result
 Result type for the frexp operation. More...
 
struct  modf_result
 Result type for the modf operation. More...
 
struct  remquo_result
 Result type for the remquo operation. More...
 

Functions

template<class T >
 remquo_result (T, int) -> remquo_result< T >
 Manual deduction guide for the remquo_result type.
 
template<class T >
 frexp_result (T, int) -> frexp_result< T >
 Manual deduction guide for the frexp_result type.
 

Variables

constexpr auto 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 frexp
 Decomposes given floating point value into a normalized fraction and an integral power of two.
 
constexpr auto modf
 Decomposes given floating point value into integral and fractional parts, each having the same type and sign as the original value.