Languages
[Edit]
EN

Java - max float value

10 points
Created by:
halfera
411

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

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
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