Skip to content

function iround(const T1 &) round

template <numeric T1>
KFR_INTRINSIC itype<T1> iround(const T1& x)

Returns the nearest integer value to x, as an integer type.

Template parameters
T1 Numeric type.
Parameters
x Input value.
Returns
Integer equivalent of round( x).

Defined at simd/round.hpp:126