public class MainClass { public static void main(String[] args) { float f = -29.6f; Float f2 = new Float(f); System.out.println(f2.floatValue()); } }