Yes, -Float.MAX_VALUE is the negative number with largest magnitude. floats are represented the same way as doubles, just with half the storage space (and the accompanying loss of precision.) Since signs in IEEE 754 are represented by a single bit, flipping that bit doesn't change the overall magnitude attainable by the remaining bits.

Answer from dlev on Stack Overflow
🌐
Tutorialspoint
tutorialspoint.com › java › lang › math_max_float.htm
Java - Math max(float x, float y) Method
The Java Math max(float a, float b) returns the greater of two float values. That is, the result is the argument closer to positive infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the numerical comparison operators
🌐
MIT
web.mit.edu › java_v1.0.2 › www › javadoc › java.lang.Float.html
Class java.lang.Float
The maximum value a float can have. The largest maximum value possible is 3.40282346638528860e+38.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › lang › Float.html
Float (Java Platform SE 8 )
October 20, 2025 - Returns the greater of two float values as if by calling Math.max. ... Returns the smaller of two float values as if by calling Math.min. ... Java™ Platform Standard Ed.
🌐
Quora
quora.com › How-is-max-value-of-float-in-Java-3-4028235E38-Isnt-float-32-bits-So-how-can-it-hold-more-that-2-32-which-is-4-294-967-296-values
How is max value of float in Java 3.4028235E38? Isn't float 32 bits? So how can it hold more that 2^32 (which is 4,294,967,296) values? - Quora
Answer (1 of 2): It can hold only that many different values, but it spaces them out. So there are large numbers of intermediate values that the float *cannot hold*. The number is stored with a ‘mantissa’ that contains the leading bits of the number (after an implied first 1) and an exponent tha...
🌐
LabEx
labex.io › tutorials › java-how-to-use-the-float-max-method-to-find-the-maximum-of-two-float-values-414166
How to use the Float max method to find the maximum of two float values | LabEx
Here, a and b are the two float values to be compared, and the method returns the greater of the two values. The Float.max() method is part of the Float class in Java, which provides a set of methods and constants for working with float values.
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-guava-floats-max-method-with-examples
Java Guava | Floats.max() method with Examples - GeeksforGeeks
July 11, 2025 - Return Value: This method returns a float value that is the maximum value in the specified array. Exceptions: The method throws IllegalArgumentException if the array is empty. Below programs illustrate the use of the above method: Example 1: ... // Java code to show implementation of // Guava's Floats.max() method import com.google.common.primitives.Floats; import java.util.Arrays; class GFG { // Driver's code public static void main(String[] args) { // Creating a float array float[] arr = { 2.2f, 4.3f, 6.4f, 10.2f, 0f, -5.2f, 15.5f, 7.4f }; // Using Floats.max() method to get the // maximum value present in the array System.out.println("Maximum value is : " + Floats.max(arr)); } }
🌐
Oracle
docs.oracle.com › javase › 7 › docs › api › java › lang › Float.html
Float (Java Platform SE 7 )
Otherwise, s is regarded as representing an exact decimal value in the usual "computerized scientific notation" or as an exact hexadecimal value; this exact numerical value is then conceptually converted to an "infinitely precise" binary value that is then rounded to type float by the usual round-to-nearest rule of IEEE 754 floating-point arithmetic, which includes preserving the sign of a zero value. Note that the round-to-nearest rule also implies overflow and underflow behaviour; if the exact value of s is large enough in magnitude (greater than or equal to (MAX_VALUE + ulp(MAX_VALUE)/2), rounding to float will result in an infinity and if the exact value of s is small enough in magnitude (less than or equal to MIN_VALUE/2), rounding to float will result in a zero.
🌐
Tabnine
tabnine.com › home page › code › java › java.lang.float
java.lang.Float.max java code examples | Tabnine
private static float[] max_columnwise(float[][] array) { float[] returnValue = new float[array[0].length]; for (int col=0; col < array[0].length; col++) { returnValue[col] = Float.MIN_VALUE; for (int row=0; row < array.length; row++) { returnValue[col] = Float.max(returnValue[col],array[row][col]); } } return returnValue; }
Find elsewhere
🌐
TutorialsPoint
tutorialspoint.com › display-the-minimum-and-maximum-value-of-primitive-data-types-in-java
Display the minimum and maximum value of primitive data types in Java
Every data type in Java has a minimum as well as maximum range, for example, for Float. Min = 1.4E-45 Max = 3.4028235E38 Let’s say for Float, if the value extends the maximum range displayed above,
🌐
Java Tutorial HQ
javatutorialhq.com › java tutorial › java.lang › float › max() method example
Java Float max() method example
September 30, 2019 - The public static float max(float a, float b) method of Float class is use to get which of the two float is having the highest value. This method is a nice addition to Java API which has been recently added in Java 8.
🌐
Javatpoint
javatpoint.com › java-float-max-method
Java Float max() method with Examples - Javatpoint
Java Float max() method with Examples on byteValue(), compare(), compareTo(), doubleValue(), equals(), floatToIntBits(), floatToRawIntBits(), floatValue(), hashCode(), intBitsToFloat(), intValue(), longValue(), parseFloat(), valueOf(), shortValue() etc.
🌐
LabEx
labex.io › tutorials › java-java-float-max-method-117676
Mastering the Java Float Max Method | LabEx
Use the Float.max() method to find the greater value of the two variables a and b. Assign the result to a third float type variable max. ... Finally, print the result using the System.out.println() method.
🌐
TheServerSide
theserverside.com › blog › Coffee-Talk-Java-News-Stories-and-Opinions › Float-vs-Double-Whats-the-difference
Java double vs float: What's the difference?
In Java, the Float and Double wrapper classes have two properties that return the upper and lower limits of float and double data types, MIN_VALUE and MAX_VALUE:
🌐
Coderanch
coderanch.com › t › 681508 › java › maximum-decimal-places-float-double
The maximum decimal places for a float and a double: Where are they exactly defined? (Beginning Java forum at Coderanch)
we can just store the "3". now, if we know we have 10 places/bytes/digits to use to store this number, we can decide the first 6 are for the "number" part, and the last four are for the "exponent part". so the above becomes: 0042320003 Java does basically that...except...it uses base 2 for everything. so in a 32-bit type, it uses something like (I've not looked it up, so don't quote me on this) 20 bits for the "number", and 12 for the "exponent". So the answer to "how many decimal places" is in a way "it depends". if you have a number like 10982347019237481.00298457 the answer is "none", because it'll get rounded to some integer value.
🌐
Programming.Guide
programming.guide › java › float-range.html
Java: Range of a float | Programming.Guide
In Java a float is a 32-bit IEEE 754 floating point. Float values are symmetrical around origo and has a maximum magnitude of 3.40282347e38
🌐
Dirask
dirask.com › posts › Java-max-float-value-D97eVj
Java - max float value
In Java, max float number value can be achieved using Float.MAX_VALUE what is equal to 3.4028235e+38f. Practical example: Output: See also
🌐
Studytonight
studytonight.com › java-wrapper-class › java-float-max-method
Java Float max() Method - Studytonight
Here, one positive and one negative ... class StudyTonight { public static void main(String[] args) { float x = 5485.324f; float y = -3242.821f; float z = -5645.578f; System.out.println("Greater number is " + Float.max(x, y)); // ...