/** * @covers Moontoast\Math\BigNumber::isGreaterThan */ public function testIsGreaterThan() { $bn1 = new BigNumber('9223372036854775808.123456', 6); $bn2 = new BigNumber('9223372036854775808.123461', 6); $this->assertTrue($bn2->isGreaterThan($bn1)); $this->assertFalse($bn1->isGreaterThan($bn2)); $bn2->setScale(4); $this->assertFalse($bn2->isGreaterThan($bn1)); $bn1->setScale(4); $this->assertFalse($bn1->isGreaterThan($bn2)); }