Hex Core JS
    Preparing search index...

    Function fixFloatingPointError

    • Fixes floating point errors by rounding to the nearest value in the second-to-least significant digit. Does nothing if the given value doesn't have enough significant digits.

      Parameters

      • value: number

        The value to fix.

      Returns number