trunc Function

Truncates the argument to the integer component

inline float trunc(
   float _X
) restrict(amp);
inline double trunc(
   double _X
) restrict(amp);

Parameters

  • _X
    Floating-point value

Return Value

Returns the integer component of the argument

Requirements

Header: amp_math.h

Namespace: Concurrency::precise_math

See Also

Reference

Concurrency::precise_math Namespace