Attempt to fix type conversion precision bug

This commit is contained in:
Joel Rowley 2017-11-04 16:33:23 -04:00
parent ca2ca5a5ca
commit 390f46f7da
1 changed files with 1 additions and 1 deletions

View File

@ -1457,7 +1457,7 @@ function wc_get_rounding_precision() {
*/
function wc_add_number_precision( $value ) {
$precision = pow( 10, wc_get_price_decimals() );
return $value * $precision;
return intval( round( $value * $precision ) );
}
/**