Attempt to fix type conversion precision bug
This commit is contained in:
parent
ca2ca5a5ca
commit
390f46f7da
|
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue