diff --git a/includes/wc-formatting-functions.php b/includes/wc-formatting-functions.php index c07a590fa9d..869dd55d2e0 100644 --- a/includes/wc-formatting-functions.php +++ b/includes/wc-formatting-functions.php @@ -229,7 +229,7 @@ function wc_trim_zeros( $price ) { * @return double */ function wc_round_tax_total( $value, $precision = null ) { - $precision = is_null( $precision ) ? wc_get_price_decimals() : absint( $precision ); + $precision = is_null( $precision ) ? wc_get_price_decimals() : intval( $precision ); if ( version_compare( PHP_VERSION, '5.3.0', '>=' ) ) { $rounded_tax = round( $value, $precision, wc_get_tax_rounding_mode() );