title: How to change a float64 number to uint64 in a right way?
body: <pre><code>package main
  
  func main() {
      var n float64 = 6161047830682206209
      println(uint64(n))
  }
  </code></pre>
  
  <p>The output will be:</p>
  
  <pre><code>6161047830682206208
  </code></pre>
  
  <p>It looks like that when <code>float64</code> change to <code>uint64</code>, the fraction is discarded.</p>