woocommerce_internal_rounding_precision
woocommerce_internal_rounding_precision
Appears in: woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3
Hook Type: filter
Displaying hooks found in version: woocommerce.9.2.3apply_filters('woocommerce_internal_rounding_precision') is found 1 times:
- /includes/wc-core-functions.php line 1913
* @since 8.8.0 * * @param int $precision The number of decimals to round to. */ return apply_filters( 'woocommerce_internal_rounding_precision', $precision ); } /** * Add precision to a number by moving the decimal point to the right as many places as indicated by wc_get_price_decimals(). * Optionally the result is rounded so that the total number of digits equals wc_get_rounding_precision() plus one. *