Misuse of Double.MIN_VALUE and Float.MIN_VALUE
Open
migrated
Priority-Medium
Type-NewCheck
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
_[Original issue](https://code.google.com/p/error-prone/issues/detail?id=203) created by **eaftan@google.com** on 2013-10-30 at 08:50 PM_
---
From Josh Bloch:
Double.MIN_VALUE and Float.MIN_VALUE do not actually provide the minimum double or float values. Instead, they provide the smallest positive nonzero value of the given type.
This is confusing, since Integer.MIN_VALUE behaves differently, and therefore most uses of Double/Float.MIN_VALUE are probably bugs.
Contributor guide
Assessment
This issue has not been assessed yet.