how to null a variable of type float
<p>My code is working if my float variable is set to 0, but I want  my code to work if my  variable is null.  How could I do that?  Here is a code snippet I wrote:</p>

<pre><code>float oikonomia= (float)((float)new Float(vprosvasis7.getText().toString()));

                         if(oikonomia==0){
</code></pre>

<p>I have tied <code>if(oikonomia==null)</code> or <code>if(oikonomia=null)</code> but it is not working.</p>

<p>P.S.: Another way would be to initially set <code>oikonomia=0;</code> and, if the users change it, go to my if session.  This is not working either.</p>

<p>Float oikonomia = Float.valueOf(vprosvasis7.getText().toString());</p>

<pre><code>                     if(oikonomia.toString() == " "){



float oikonomia= (float)((float)new Float(vprosvasis7.getText().toString()));
                  oikonomia=0;
                         if(oikonomia==0){
</code></pre>

<p>that way is not working too:</p>

<pre><code>Float oikonomia = Float.valueOf(vprosvasis7.getText().toString());

                         if(oikonomia.toString() == " "){
</code></pre>
