WordPress at Your Fingertips
function is not described

wc_get_tax_rounding_mode() WC 3.2.4

Get rounding mode for internal tax calculations.

No Hooks.

Return

Int.

Usage

wc_get_tax_rounding_mode();

Changelog

Since 3.2.4 Introduced.

Code of wc_get_tax_rounding_mode() WC 5.6.0

function wc_get_tax_rounding_mode() {
	$constant = WC_TAX_ROUNDING_MODE;

	if ( 'auto' === $constant ) {
		return 'yes' === get_option( 'woocommerce_prices_include_tax', 'no' ) ? PHP_ROUND_HALF_DOWN : PHP_ROUND_HALF_UP;
	}

	return intval( $constant );
}