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