Float: intValue() : Float « java.lang « Java by API






Float: intValue()

  
    
    


public class Main {

  public static void main(String[] args) {

    Float fObj = new Float("10.50");
    byte b = fObj.byteValue();
    System.out.println(b);

    short s = fObj.shortValue();
    System.out.println(s);

    int i = fObj.intValue();
    System.out.println(i);

    float f = fObj.floatValue();
    System.out.println(f);

    double d = fObj.doubleValue();
    System.out.println(d);
  }
}

   
    
  








Related examples in the same category

1.Float.MAX_VALUE
2.Float.MIN_VALUE
3.new Float(String s)
4.new Float(float value)
5.Float: byteValue()
6.Float: floatValue()
7.Float: compare(float f1, float f2)
8.Float: compareTo(Float anotherFloat)
9.Float: doubleValue()
10.Float: isInfinite(float v)
11.Float.isNaN() Returns true if this Float value is a Not-a-Number (NaN),
12.Float: parseFloat(String s)
13.Float: shortValue()
14.Float: toString()
15.Float: toString(float f)
16.Float: valueOf(String stringValue)