Skip to content

Instantly share code, notes, and snippets.

@Agilulfe
Last active August 21, 2020 13:39
Show Gist options
  • Save Agilulfe/8a6de238a2ce01515548412542c5c6e1 to your computer and use it in GitHub Desktop.
Save Agilulfe/8a6de238a2ce01515548412542c5c6e1 to your computer and use it in GitHub Desktop.
Floating-points in Go
package main
import (
"fmt"
)
func main() {
fmt.Println(1.51-1.50 == 0.01)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment