first commit
This commit is contained in:
1
wp/wp-content/plugins/woocommerce/assets/js/round/round.min.js
vendored
Normal file
1
wp/wp-content/plugins/woocommerce/assets/js/round/round.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
function round(a,e,r){var _,c,s;if(e|=0,c=(a*=e=Math.pow(10,e))%1==.5*(s=0<a|-(a<0)),_=Math.floor(a),c)switch(r){case"2":case"PHP_ROUND_HALF_DOWN":a=_+(s<0);break;case"3":case"PHP_ROUND_HALF_EVEN":a=_+_%2*s;break;case"4":case"PHP_ROUND_HALF_ODD":a=_+!(_%2);break;default:a=_+(0<s)}return(c?a:Math.round(a))/e}
|
||||
Reference in New Issue
Block a user