- 2 minutes to read
Returns the floating-point remainder of x/y.
||[in] The floating-point dividend.
||[in] The floating-point divisor.
The floating-point remainder of the x parameter divided by the y parameter.
The floating-point remainder is calculated such that x = i * y + f, where i is an integer, f has the same sign as x, and the absolute value of f is less than the absolute value of y.
Minimum Shader Model
This function is supported in the following shader models.
Intrinsic Functions (DirectX HLSL)