/** * @test sub should correctly subtract */ public function subGeneric() { $value1 = new BigDecimal('192341864273423843765928364.12345', 5); $value2 = new BigDecimal('1476127319823712827462.6789', 4); $result = $value1->subtract($value2); $this->assertSame('192340388146104020053100901.44455', $result->value()); }