Macro floating_drift_adjust

Source
macro_rules! floating_drift_adjust {
    ($($x:expr),+ $(,)?) => { ... };
}
Expand description

If the floats are essentially integers, make them the exact integers.

ยงExamples

use rotchess_core::floating_drift::floating_drift_adjust;
let result = floating_drift_adjust!(1.000001, 2.5);
assert_eq!(result, (1.0, 2.5));