float() 공개 정적인 메소드

public static float ( string $value, integer $round = 10 ) : float
$value string
$round integer
리턴 float
예제 #1
0
파일: FilterTest.php 프로젝트: jbzoo/utils
 /**
  * @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));
     }
 }