public function testMod() { $this->assertTrue(CMathf::equalsZt(CMathf::mod(11.0, 5.0), 1.0)); $this->assertTrue(CMathf::equalsZt(CMathf::mod(9.0, 3.0), 0.0)); $this->assertTrue(CMathf::equalsZt(CMathf::mod(2.5, 0.2), 0.1)); $this->assertTrue(CMathf::mod(11, 5) === 1.0); $this->assertTrue(CMathf::mod(9, 5) === 4.0); }