Last active
August 21, 2020 13:39
-
-
Save Agilulfe/8a6de238a2ce01515548412542c5c6e1 to your computer and use it in GitHub Desktop.
Floating-points in Go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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