Languages
[Edit]
EN

Java - max float value

10 points
Created by:
halfera
351

In Java, max float number value can be achieved using Float.MAX_VALUE what is equal to 3.4028235e+38f.

Practical example:

package example;

public class Program {

	public static void main(String[] args) {

		System.out.println(Float.MAX_VALUE);  // 3.4028235e+38f    or in hex: 0x1.fffffeP+127f
	}
}

Output:

3.4028235e+38f

 

See also

  1. Java - min float value

  2. Java - min double value

  3. Java - max double value

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join