Ceil is a function for getting a value from the up position; floor is a function for rounding out the decimal places to get a value; round is a function for rounding out. Ceil definition and usage: the ceil () function rounds up to the nearest
Ceil is a function of rounding up to get a value;Floor is a function of dropping a decimal bit to get a value;Round is a function for rounding.
CeilDefinition and Usage:The Ceil () function is rounded up to the nearest integer.
Copy Code code
Numeric functions, other rand, floor, ceil, round, $ REMOTE_ADDR numeric functions
Srand
Random number initialization
Rand
Random number generation
Floor
Integer truncation
Ceil
Function rounded up to
PHP 5Math function
Introduction to PHP MathThe Math function can handle values in the range of integers and float.
InstallationThe PHP Math function is part of the PHP core. These functions can be used without installation.
PHP 5
The filter_validate_float filter uses the value as a floating point number for verification.*/$ Var = 12.3;Var_dump (filter_var ($ var, filter_validate_float ));// Float (1, 12.3)/*Non-negative floating point number (positive floating point number +
The complete path and FILE name of the common PHP system constant _ FILE. If it is used in a file to be included, the file name to be included is returned. Since PHP4.0.2, it always contains an absolute path (if it is a symbolic connection, it is
In the previous article to introduce you to PHP variable variables, today through this article to introduce you to PHP variable functions, specific details are as follows.
PHP supports the concept of variable functions. This means that if a
Common php Data functions. Function description of php abs device () returns the absolute value of 3rd acos () returns the arccosine 3rd acossh () returns the inverse hyperbolic cosine of 4 axin () returns the function description of a PHP on the
The Filter_validate_float filter validates the value as a floating-point number.
*/
$var = 12.3;
Var_dump (Filter_var ($var, filter_validate_float));
Float (12.3)
/*Non-negative floating-point number (positive floating point + 0): ^d+ (. d+)?
function Description of PHP
ABS device () returns the absolute number 3rd
ACOs () returns the 3rd number of arccosine
Acosh () returns the inverse hyperbolic cosine of number 4th
Azeem () return to the 3rd of the inverse chord
Asinh () returns the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.