Languages
[Edit]
EN

Java - min float value

4 points
Created by:
Lia-Perez
565

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

Practical example:

Output:

Warning: do not confuse Float.MIN_VALUE with float minimal value - it returns min positive float value.

 

Min positive float value

Edit

Sometimes it is necessary to know minimal positive float value. To get its we can use Float.MIN_VALUE.

Output:

 

See also

Edit
  1. Java - max float value

  2. Java - min double value

  3. Java - max double value

1
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