Exemple #1
0
 public function testFloor()
 {
     $this->assertTrue(CMathf::floor(1.2) === 1.0);
     $this->assertTrue(CMathf::floor(2.8) === 2.0);
     $this->assertTrue(CMathf::floor(3.0) === 3.0);
     $this->assertTrue(CMathf::floor(-4.2) === -5.0);
     $this->assertTrue(CMathf::floor(-5.0) === -5.0);
     $this->assertTrue(CMathf::floor(1) === 1.0);
     $this->assertTrue(CMathf::floor(2) === 2.0);
 }