/**
 * DevExtreme (esm/__internal/ui/splitter/utils/number_comparison.js)
 * Version: 24.1.7-build-24272-1937
 * Build date: Sat Sep 28 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
import {
    toFixed
} from "../../../../localization/utils";
export const PRECISION = 10;
export function compareNumbersWithPrecision(actual, expected) {
    let precision = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 10;
    const delta = parseFloat(toFixed(actual, precision)) - parseFloat(toFixed(expected, precision));
    if (0 === delta) {
        return 0
    }
    return delta > 0 ? 1 : -1
}
