numeric.float64 ≡
template <Denorm denorm_mode> inline uint64 add(uint64 in1, uint64 in2) §source
Addition.
template <Denorm denorm_mode> inline uint64 mul(uint64 in1, uint64 in2) §source
Multiplication.
template <Denorm denorm_mode> inline bool eq(uint64 in1, uint64 in2) §source
Compare two float64 values for equality.
template <Denorm denorm_mode> inline bool lt(uint64 in1, uint64 in2) §source
Check in1 less than in2.
template <Denorm denorm_mode> inline bool gt(uint64 in1, uint64 in2) §source
Check in1 greater than in2.
inline uint64 neg(uint64 x) §source
Negate.
template <Denorm denorm_mode> inline uint64 sub(uint64 in1, uint64 in2) §source
Subtract in2 from in1.
template <auto N> inline uint64 from_int(int<N> value) §source
Convert a signed integer to a float64.
Parameters
-
auto NWidth of
value.
template <auto N> inline uint64 from_uint(uint<N> value) §source
Convert an unsigned integer to a float64.
Parameters
-
auto NWidth of
value.
template <auto N> inline optional<int<N>> to_int(uint64 value) §source
Convert a float64 to a signed integer
Parameters
-
auto NWidth of the signed integer.
template <auto N> inline optional<uint<N>> to_uint(uint64 value) §source
Convert a float64 to an unsigned integer
Parameters
-
auto NWidth of the unsigned integer.
inline float64 from_float32(float32 value) §source
Convert a float32 to a float64.
inline bool isnan(uint64 x) §source
Check x is not a number.
inline bool isinf(uint64 x) §source
Check x is positive or negative infinity.
inline bool isfinite(uint64 x) §source
inline bool isnormal(uint64 x) §source
inline bool signbit(uint64 x) §source
Return sign of x.
template <Denorm denorm_mode> inline uint64 min(uint64 x, uint64 y) §source
Return the smaller of x and y. A NaN is
treated as missing data, and the other value will be returned.
template <Denorm denorm_mode> inline uint64 max(uint64 x, uint64 y) §source
Return the larger of x and y. A NaN is
treated as missing data, and the other value will be returned.
template <Denorm denorm_mode> inline uint64 ceil(uint64 x) §source
Return the smallest integer not less than x: (x )
template <Denorm denorm_mode> inline uint64 floor(uint64 x) §source
Return the largest integer not greater than x: (x )
template <Denorm denorm_mode> inline uint64 round(uint64 x) §source
Return the nearest integer to x, rounding halfway away
from zero.
template <Denorm denorm_mode> inline uint64 trunc(uint64 x) §source
Return the nearest integer not greater in magnitude than
x.
template <Denorm denorm_mode> inline uint64 dim(uint64 x, uint64 y) §source
Return the positive difference between x and
y, i.e. max(x - y, 0).
template <Denorm denorm_mode> inline uint64 abs(uint64 x) §source
Return the absolute value of x: |x|