Untitled
unknown
plain_text
a year ago
251 B
3
Indexable
Never
package main import ( "fmt" "math" ) func main() { a := float64(6.3) b := float64(1.0) quotient := math.Floor(a / b) remainder := a - quotient*b fmt.Printf("The remainder is %v", remainder) // return 0.299999 instead of 0.3 }