shz_fmodf
SHZ_INLINE float shz_fmodf(float num, float denom) SHZ_NOEXCEPT;Replacement for the <math.h> routine, fmodf().
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
num | float | |
denom | float |
Returns
Section titled “Returns”float
Details
Section titled “Details”Returns the floating-point remainder of num divided by denom, rounded towards zero.
Warnings
Section titled “Warnings”- This routine does not gracefully handle dividing by zero.
Availability
Section titled “Availability”- 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"