6 calls to Calculator::trim() in Commerce Core 8.2
- Calculator::add in modules/
price/ src/ Calculator.php - Adds the second number to the first number.
- Calculator::divide in modules/
price/ src/ Calculator.php - Divides the first number by the second number.
- Calculator::multiply in modules/
price/ src/ Calculator.php - Multiplies the first number by the second number.
- Calculator::subtract in modules/
price/ src/ Calculator.php - Subtracts the second number from the first number.
- CalculatorTest::testArithmetic in modules/
price/ tests/ src/ Unit/ CalculatorTest.php - @covers ::add @covers ::subtract @covers ::multiply @covers ::divide @covers ::compare @covers ::trim
- Price::__toString in modules/
price/ src/ Price.php - Gets the string representation of the price.