|  |  | 
Returns the fractional part f of x, such that f is a value greater than or equal to 0, and less than 1.
| ret frac(x) | 
|---|
Where:
| Name | In/Out | Template Type | Component Type | Size | 
|---|---|---|---|---|
| x | in | scalar, vector, or matrix | float | any | 
| ret | out | same as input x | float | same dimension(s) as input x | 
This intrinsic function is supported in the following (or above) shader versions:
| Vertex Shader | Pixel Shader | 
|---|---|
| vs_1_1 | ps_2_0 |