Merge pull request #17161 from woocommerce/fix/17158
Remove rounding in wc_remove_number_precision
This commit is contained in:
commit
a63c822d2d
|
@ -1472,7 +1472,7 @@ function wc_add_number_precision( $value ) {
|
|||
*/
|
||||
function wc_remove_number_precision( $value ) {
|
||||
$precision = pow( 10, wc_get_price_decimals() );
|
||||
return wc_format_decimal( $value / $precision, wc_get_price_decimals() );
|
||||
return $value / $precision;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue