共用方式為


modf Function (fast_math)

Splits _X into fractional and integer parts.

inline float modf(
   float _X,
   float * _Ip
) restrict(amp);

Parameters

  • _X
    Floating-point value

  • _Ip

Return Value

Returns the signed fractional portion of _X

Requirements

Header: amp_math.h

Namespace: Concurrency::fast_math

See Also

Reference

Concurrency::fast_math Namespace