programmatically finding the size of float
<p>Disclaimer: this question may not have practical value, it's more of a puzzle/curiosity question.</p>

<p>In Java I can write the following code to programmatically find the size of int:</p>

<pre><code>public static void main(String[] args) 
{
    int x = 1;
    int count = 1;

    while((x = x &lt;&lt; 1) != 0)
    {           
        count++;
        System.out.println("x: " + x + ", " + count);
    }

    System.out.println("size: " + count);
}
</code></pre>

<p>Is there a similar way to programmatically find the size of Java's float?</p>
