title: How to convert float to int : android
body: <pre><code>float NormValue = value*80 ;
  float color = Color.argb(0xFF, NormValue, 0, 0);
  </code></pre>
  
  <p>This is a part of my code.
  This variable (NormValue) stores the result in float . But in second line i cannot use this variable since it has to be converted to int. How can i do it. Any help?</p>