WordPress at Your Fingertips
function is not described

wc_remove_number_precision() WC 3.2.0

Remove precision from a number and return a float.

No Hooks.

Return

float.

Usage

wc_remove_number_precision( $value );
$value(float) (required)
Number to add precision to.

Changelog

Since 3.2.0 Introduced.

Code of wc_remove_number_precision() WC 5.8.0

function wc_remove_number_precision( $value ) {
	$cent_precision = pow( 10, wc_get_price_decimals() );
	return $value / $cent_precision;
}