precision() private static méthode

Multiply cost by pow precision.
private static precision ( float $price ) : float
$price float
Résultat float
 /**
  * Load options.
  *
  * @access public
  */
 public static function init()
 {
     self::$precision = WC_ROUNDING_PRECISION;
     self::$round_at_subtotal = 'yes' === get_option('woocommerce_tax_round_at_subtotal');
 }
 /**
  * Load options.
  *
  * @access public
  */
 public static function init()
 {
     self::$precision = wc_get_rounding_precision();
     self::$round_at_subtotal = 'yes' === get_option('woocommerce_tax_round_at_subtotal');
     add_action('update_option_woocommerce_tax_classes', array(__CLASS__, 'maybe_remove_tax_class_rates'), 10, 2);
 }
 /**
  * Load options.
  *
  * @access public
  */
 public static function init()
 {
     self::$precision = wc_get_rounding_precision();
     self::$round_at_subtotal = 'yes' === get_option('woocommerce_tax_round_at_subtotal');
 }