How to check the precision of Float
<p>I have <code>Float</code> like this one:</p>

<pre><code>Float f = Float.valueOf("9.222333999444555666");
System.out.println(f);  //prints 9.222334
</code></pre>

<p>Is there a way to count the number of digits after the <code>.</code> sign without using regex: <code>f.toString().split("\\.")[1].length()</code>?</p>