|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency) | |
| deltaRound ($price, $negative=false) | |
Protected Attributes | |
| $_delta = 0.0 | |
| $priceCurrency | |
| __construct | ( | \Magento\Framework\Pricing\PriceCurrencyInterface | $priceCurrency | ) |
| \Magento\Framework\Pricing\PriceCurrencyInterface | $priceCurrency |
Definition at line 31 of file Calculator.php.
| deltaRound | ( | $price, | |
$negative = false |
|||
| ) |
Round price considering delta
| float | $price | |
| bool | $negative | Indicates if we perform addition (true) or subtraction (false) of rounded value |
Definition at line 43 of file Calculator.php.
|
protected |
Definition at line 21 of file Calculator.php.
|
protected |
Definition at line 26 of file Calculator.php.