PHP floor()

1 개요[ | ]

PHP floor()
  • "Round fractions down"
  • 내림 함수
PHP
Copy
echo floor(4.3);   // 4
echo floor(9.999); // 9
echo floor(-3.14); // -4
Loading
PHP
Copy
echo floor(4.3);   // 4
echo floor(9.999); // 9
echo floor(-3.14); // -4
Loading
PHP
Copy
echo floor(3.14159) . "\n";
echo floor(-3.14159) . "\n";
echo floor(9.98) . "\n" ;
Loading
PHP
Copy
echo(floor(0.60) . "<br>");
echo(floor(0.40) . "<br>");
echo(floor(5) . "<br>");
echo(floor(5.1) . "<br>");
echo(floor(-5.1) . "<br>");
echo(floor(-5.9));
Loading

2 같이 보기[ | ]

3 참고[ | ]