title: Golang converting float64 to int error
body: <p>How can I avoid floating point errors when converting float's to int's. 
  For example the following code prints: <code>0.5499999999999972</code> when I wound expect it to print <code>0.55</code>.</p>
  
  <pre><code>package main
  
  import "fmt"
  
  func main() {
      x := 100.55
      fmt.Println(x - float64(int(x)))    
  }
  
  Output:
  0.5499999999999972
  </code></pre>