Skip to content

shz_fmodf

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

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

NameTypeDescription
numfloat
denomfloat

float

Returns the floating-point remainder of num divided by denom, rounded towards zero.

  • This routine does not gracefully handle dividing by zero.
  • C++ equivalent: shz::fmodf
  • Type-generic form: none
  • Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_scalar.h:137
  • Module: Scalar, section "Rounding"

shz_remainderf