title: How to check if float is a whole number?
body: <p>The <code>printf</code> function's <code>%g</code> is able to show the whole number <code>3</code> if the float is 3.00, and will show <code>3.01</code> if the float's value isn't a round number float.</p>
  <p>How would you do this yourself through some code, without formatting the number as a string?</p>