Skip to content

shz_remainderf

Markdown
SHZ_INLINE float shz_remainderf(float num, float denom) SHZ_NOEXCEPT;

Replacement for the <math.h> routine, remainderf().

NameTypeDescription
numfloat
denomfloat

float

Returns the floating-point remainder of num divided by denom, rounded to the nearest integer (as a float).

  • This routine does not gracefully handle dividing by zero, and it is only valid for the input range INT32_MIN <= num / denom <= INT32_MAX.

shz_fmodf, shz_remquof, shz_truncf