shz_remainderf
SHZ_INLINE float shz_remainderf(float num, float denom) SHZ_NOEXCEPT;Replacement for the <math.h> routine, remainderf().
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 to the nearest integer (as a float).
Warnings
Section titled “Warnings”- This routine does not gracefully handle dividing by zero, and it is only valid for the input range INT32_MIN <=
num/denom<= INT32_MAX.
Availability
Section titled “Availability”- C++ equivalent:
shz::remainderf - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:125 - Module: Scalar, section "Rounding"