20 #ifndef ANTKEEPER_MATH_FRACT_HPP
21 #define ANTKEEPER_MATH_FRACT_HPP
37 template <std::
floating_po
int T>
38 [[nodiscard]]
inline T
fract(T x)
41 return std::modf(x, &i);
Mathematical functions and data types.
T fract(T x)
Returns the fractional part of a floating-point number.