// Remainder returns the IEEE 754 floating-point remainder of x/y. // // Special cases are: // // Remainder(±Inf, y) = NaN // Remainder(NaN, y) = NaN // Remainder(x, 0) = NaN // Remainder(x, ±Inf) = x // Remainder(x, NaN) = NaN func Remainder(x, y float64) float64 { … } func remainder(x, y float64) float64 { … }