pub fn float_compare_non_exact(first: f64, second: f64) -> bool {
    // Naive implementation for this specific simulation.
    // Precision for at least 6 decimal places is required.
    // Corner cases are irrelevant for this simulation as
    // they are checked for during broker message creation.
    (first - second).abs() <= 0.000_000_1
}
/// Compares two floating point numbers for non-exact equality.
/// This method does not handle any corner cases.
///
/// # Parameters
///
/// * `first` - the first floating point number
/// * `second` - the second floating point number
Compares two floating point numbers for non-exact equality.
This method does not handle any corner cases.
Compares two floating point numbers for non - exact equality . This method does not handle any corner cases .
pub fn float_compare_non_exact(first: f64, second: f64) -> bool {
    // Naive implementation for this specific simulation.
    // Precision for at least 6 decimal places is required.
    // Corner cases are irrelevant for this simulation as
    // they are checked for during broker message creation.
    (first - second).abs() <= 0.000_000_1
}
pub fn float_compare_non_exact ( first : f64 , second : f64 ) -> bool { // Naive implementation for this specific simulation. // Precision for at least 6 decimal places is required. // Corner cases are irrelevant for this simulation as // they are checked for during broker message creation. ( first - second ) . abs ( ) <= 0.000_000_1 }
Compares two floating point numbers for non-exact equality.
Compares two floating point numbers for non - exact equality .
first
f64
second
f64
first
f64
second
f64