Merge pull request #17161 from woocommerce/fix/17158

Remove rounding in wc_remove_number_precision
This commit is contained in:
Claudiu Lodromanean 2017-10-12 08:48:32 -07:00 committed by GitHub
commit a63c822d2d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**