Go is actually a lot more confusing about this than this than this page makes clear.<p>a := .1; b := .2<p>fmt.Println(a+b) returns 0.30000000000000004<p>fmt.Println(.1+.2) returns 0.3<p>Even worse, this persists into comparisons:<p>c := .3<p>a+b == c returns false<p>.1+.2 == c returns true<p>It&#x27;s not a particularly big issue, mostly, but I&#x27;m sure it&#x27;s confused someone before now, and will do so again.<p>Demo code: <a href="http:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;FOv0JQRQJN" rel="nofollow">http:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;FOv0JQRQJN</a>