mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-08-01 16:28:03 +08:00
Compare commits
No commits in common. "4a5e20b794f087ed4ad8708edd133a991a70aabe" and "8adefc8b2083cdee6f7419c5cfa200c0c55b7b44" have entirely different histories.
4a5e20b794
...
8adefc8b20
@ -665,7 +665,7 @@ private static long sum() {
|
|||||||
```java
|
```java
|
||||||
float a = 2.0f - 1.9f;
|
float a = 2.0f - 1.9f;
|
||||||
float b = 1.8f - 1.7f;
|
float b = 1.8f - 1.7f;
|
||||||
System.out.printf("%.9f",a);// 0.100000024
|
System.out.println(a);// 0.100000024
|
||||||
System.out.println(b);// 0.099999905
|
System.out.println(b);// 0.099999905
|
||||||
System.out.println(a == b);// false
|
System.out.println(a == b);// false
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user