Lines Matching refs:rint
5764 * rint: Round to even
5768 * rint() rounds half values to even. For example, rint(0.5f) returns 0.f and
5769 * rint(1.5f) returns 2.f. Similarly, rint(-0.5f) returns -0.f and
5770 * rint(-1.5f) returns -2.f.
5775 rint(float v);
5778 rint(float2 v);
5781 rint(float3 v);
5784 rint(float4 v);
5788 rint(half v);
5793 rint(half2 v);
5798 rint(half3 v);
5803 rint(half4 v);
5854 * rint() is similar but rounds half values toward even. trunc() truncates the decimal fraction.
6431 * See rint() and round() for other rounding options.