title: Python: Float or Double
body: <p>I need to pack numbers in Python using the <code>struct</code> module. I want to check if a number is <code>float</code> or <code>double</code>, when I pack it. How can I do that? Is there any built-in functions, or I need to write one? Or I need to write a class for simple <code>Float</code>s instead of using python's <code>float</code>s(which are actually <code>Double</code>s)?</p>
  
  <p>Thanks in advance!</p>