PHP has great support with Mathematical processing and operations.PHP has very rich functions high level programming language.We can use these MATH function to addition of number, subtraction addition of number,multiplication addition of number and many other mathematical operation.In This tutorial we will understand simple use of PHP Mathematics fucntion with sample code.
Checkout other tutorial of PHP,
- Introduction Of PHP File functions
- PHP Math functions
- Introduction of PHP Array Function and Use
- PHP Common String Functions and Use
- PHP Common Array Functions and Use
There are two
floor for doing rounding off number.
Below are simple steps for how to use these functions.
floor() function rounds off the value down to the nearest integer.
The output of the above code will be 0.
ceil() function rounds the value up to the nearest integer.
The output of the above code will be 1.