3#ifndef pRC_CORE_VALUE_FUNCTIONS_TRUNC_H
4#define pRC_CORE_VALUE_FUNCTIONS_TRUNC_H
23 template<
class T, If<IsFloat<T>> = 0>
24 static inline constexpr auto trunc(
T const &a)
26 return Float(std::trunc(a()));
39 template<
class T, If<IsInteger<T>> = 0>
40 static inline constexpr auto trunc(
T const &a)
Top-level class storing a floating point number.
Definition float.hpp:35
Definition cholesky.hpp:18
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
static constexpr auto trunc(Complex< T > const &a)
Definition trunc.hpp:12