float() public static method

public static float ( string $value, integer $round = 10 ) : float
$value string
$round integer
return float
Esempio n. 1
0
 /**
  * @param $exepted
  * @param $actual
  * @param $round
  * @dataProvider providerFloat
  */
 public function testFloat($exepted, $actual, $round = null)
 {
     if (null === $round) {
         isSame($exepted, Filter::_($actual, 'float'));
     } else {
         isSame($exepted, Filter::float($actual, $round));
     }
 }