while(r - l > 1e-6){ double mid = (l + r) / 2.0; if(check(mid))l = mid; else r = mid; }
想问如上代码中 1e-6 的意思?
1e-6