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