Skip to content

function trunc(const T1 &) round

template <numeric T1>
KFR_INTRINSIC T1 trunc(const T1& x)

Returns the integer part of x by removing its fractional part.

Template parameters
T1 Numeric type.
Parameters
x Input value.
Returns
The truncated integer part of x.

Defined at simd/round.hpp:78