We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b073060 + 274f8d2 commit 7840c94Copy full SHA for 7840c94
1 file changed
src/hpc/ocr_felt.rs
@@ -11,8 +11,8 @@
11
12
use super::ocr_simd::{BinaryImage, GrayImage, foreground_count};
13
14
-/// Euler-Mascheroni constant.
15
-const EULER_GAMMA: f64 = 0.5772156649;
+/// Euler-Mascheroni constant (Rust 1.94+).
+const EULER_GAMMA: f64 = std::f64::consts::EULER_GAMMA;
16
/// Signal floor for skew detection: γ/(γ+1).
17
const SKEW_FLOOR: f64 = EULER_GAMMA / (EULER_GAMMA + 1.0);
18
0 commit comments