class Main { public static void main(String[] args) { float number = -42.3f; System.out.println(number); // prints -42.3 } }