problem with integers
<p>can anybody look at this code and tell me why the exception happens? </p>

<pre><code>public static void main(String[] args)
{
    int total =100;
    int discount_Ammount = 20 ;
       int newAccount=Integer.parseInt( String.valueOf(Math.floor(total - discount_Ammount)).trim());
}
</code></pre>

<p>Method floor returns double value , then I make casting to integer, so I cast it to string then to integer... please, can anybody help?</p>
