title: Real numbers - how to determine whether float or double is required?
body: <p>Given a real value, can we check if a <code>float</code> data type is enough to store the number, or a <code>double</code> is required?</p>
  
  <p>I know precision varies from architecture to architecture. Is there any C/C++ function to determine the right data type?</p>