title: Float64 type printing as int in Golang
body: <p>Surprisingly I couldn't find anyone else having this same issue; I tried simply initializing a float64 in Go and printing it, then attempting a string conversion and printing that. Neither output was accurate.</p>
  
  <p>I've attempted this with many fractions, including those which don't resolve to repeating decimals, as well as simply writing out the float and printing (e.g. <code>num := 1.5</code> then <code>fmt.Println(num)</code> gives output <code>1</code>).</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "strconv"
  )
  
  func main() {
      var num float64
      num = 5/3
      fmt.Printf("%v\n", num)
      numString := strconv.FormatFloat(num, 'f', -1, 64)
      fmt.Println(numString)
  }
  
  </code></pre>
  
  <p><strong>Expected:</strong></p>
  
  <pre><code>// Output:
  1.66
  1.66
  </code></pre>
  
  <p><strong>Actual:</strong></p>
  
  <pre><code>// Output:
  1
  1
  </code></pre>