This question already has an answer here:
Following Go code
for i := 0.0 ; i < 5 ; i+=0.1 {
fmt.Printf("%v, ", i)
}
results in this (partial) output
0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5
Why am I getting 0.30000000000000004 instead of 0.3?
</div>