Source File
remainder.go
Belonging Package
math
package math
func (, float64) float64
func (, float64) float64 {
const (
= 4.45014771701440276618e-308 // 0x0020000000000000
= MaxFloat64 / 2
switch {
case IsNaN() || IsNaN() || IsInf(, 0) || == 0:
return NaN()
case IsInf(, 0):
return
}
:= false
if < 0 {
= -
= true
}
if < 0 {
= -
}
if == {
if {
:= 0.0
return -
}
return 0
}
if <= {
= Mod(, +) // now x < 2y
}
if < {
if + > {
-=
if + >= {
-=
}
}
} else {
:= 0.5 *
if > {
-=
if >= {
-=
}
}
}
if {
= -
}
return
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |