woocommerce_internal_rounding_precision
woocommerce_internal_rounding_precision
Appears in: woocommerce.10.0.4, woocommerce.10.1.2, 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, woocommerce.9.3.1, woocommerce.9.3.3, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1, woocommerce.9.5.2, woocommerce.9.7.0, woocommerce.9.7.1, woocommerce.9.8.1, woocommerce.9.8.5, woocommerce.9.9.5
Hook Type: filter
Displaying hooks found in version: woocommerce.9.9.5apply_filters('woocommerce_internal_rounding_precision') is found 1 times:
- /includes/wc-core-functions.php line 2019
* @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. *