title: How to round to nearest int when casting float to int in go
body: <p>When casting float to int the decimal is discarded. What's a clean way to cast so that it rounds to the nearest whole number instead.</p>
  
  <p><code>x := int(3.6)</code>
  should equal 4 instead of 3.</p>