\left(x + 0.10000000000000001\right) - x
0.10000000000000001
double code(double x) {
return ((double) (((double) (x + 0.1)) - x));
}
double code(double x) {
return 0.1;
}



Bits error versus x
Results
Initial program 30.3
Simplified0
Final simplification0
herbie shell --seed 2020153
(FPCore (x)
:name "(- (+ x 0.1) x)"
:precision binary64
(- (+ x 0.1) x))