/** * @covers Moontoast\Math\BigNumber::abs */ public function testAbs() { $bn1 = new BigNumber('-1234.5678', 4); $bn2 = new BigNumber('5678'); $bn3 = new BigNumber('0'); $this->assertSame('1234.5678', $bn1->abs()->getValue()); $this->assertSame('5678', $bn2->abs()->getValue()); $this->assertSame('0', $bn3->abs()->getValue()); }