Skip to content

function round(const T1 &) round

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

Returns the nearest integer value to x.

Template parameters
T1 Numeric type.
Parameters
x Input value.
Returns
The nearest integer value to x.

Defined at simd/round.hpp:66