src/WooCommerce/Shop/InvoiceStatusOverviewForm.php
private function getAmountStatus($amount, $amountLocal)
    {
        if (Number::floatsAreEqual($amount, $amountLocal)) {
            $status = static::Status_Success;
        } elseif (Number::floatsAreEqual($amount, $amountLocal, 0.02)) {
            $status = static::Status_Info;
        } elseif (Number::floatsAreEqual($amount, $amountLocal, 0.05)) {
            $status = static::Status_Warning;
        } else {
            $status = static::Status_Error;
        }
        return $status;
    }
private function getAmountStatus($amount, $amountLocal)
    {
        if (Number::floatsAreEqual($amount, $amountLocal)) {
            $status = static::Status_Success;
        } elseif (Number::floatsAreEqual($amount, $amountLocal, 0.02)) {
            $status = static::Status_Info;
        } elseif (Number::floatsAreEqual($amount, $amountLocal, 0.05)) {
            $status = static::Status_Warning;
        } else {
            $status = static::Status_Error;
        }
        return $status;
    }
private function getAmountStatus ( $ amount , $ amountLocal ) { if ( Number :: floatsAreEqual ( $ amount , $ amountLocal ) ) { $ status = static :: Status_Success ; } elseif ( Number :: floatsAreEqual ( $ amount , $ amountLocal , 0.02 ) ) { $ status = static :: Status_Info ; } elseif ( Number :: floatsAreEqual ( $ amount , $ amountLocal , 0.05 ) ) { $ status = static :: Status_Warning ; } else { $ status = static :: Status_Error ; } return $ status ; }
Returns the status of an amount by comparing it with its local value.

If the amounts differ:
- < 0.5 cent, they are considered equal and 'success' will be returned.
- < 2 cents, it is considered a mere rounding error and 'info' will be returned.
- < 5 cents, it is considered a probable error and 'warning' will be returned.
- >= 5 cents, it is considered an error and 'error' will be returned.

@param float $amount
@param float $amountLocal

@return int
One of the Status_... constants.
Returns the status of an amount by comparing it with its local value .