Sign in
chromium
/
external
/
github.com
/
google
/
error-prone
/
refs/heads/copybara-sync
/
.
/
docs
/
bugpattern
/
FloatingPointLiteralPrecision.md
blob: 55a80e7b849bf1804e0e77e6d623459a9243135f [
file
] [
log
] [
blame
] [
view
] [
edit
]
`double`
and
`float`
literals that can
't be precisely represented should be
avoided.
Example:
```java
double d = 1.9999999999999999999999999999999;
System.err.println(d); // prints 2.0
```