WordPress at a glance
function is not described

wc_get_price_decimals() WC 2.3

Return the number of decimals after the decimal point.

Hooks from the function
Return

Int. Nothing.

Usage

wc_get_price_decimals();

Changelog

Since 2.3 Introduced.

Code of wc_get_price_decimals() WC 5.3.0

<?php
function wc_get_price_decimals() {
	return absint( apply_filters( 'wc_get_price_decimals', get_option( 'woocommerce_price_num_decimals', 2 ) ) );
}