Mod returns the floating-point remainder of x/y. The magnitude of the result is less than y and its sign agrees with that of x. Special cases are: Mod(±Inf, y) = NaN Mod(NaN, y) = NaN Mod(x, 0) = NaN Mod(x, ±Inf) = x Mod(x, NaN) = NaN
(x, y float32)
| 343 | // Mod(x, ±Inf) = x |
| 344 | // Mod(x, NaN) = NaN |
| 345 | func Mod(x, y float32) float32 { |
| 346 | return engomath.Mod(x, y) |
| 347 | } |
| 348 | |
| 349 | // Modf returns integer and fractional floating-point numbers |
| 350 | // that sum to f. Both values have the same sign as f. |