www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons PHP Mathematical Functions Bookmark and Share
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
Lesson 37
Lesson 38
Lesson 39
Lesson 40
Lesson 41
Lesson 42
Lesson 43
Lesson 44
ceil()
The ceil() function rounds a fraction up to the next highest integer. Its syntax follows:
ceil(number);

floor()
The floor() function rounds a fraction down to the next lowest integer. Its syntax follows:

floor(number);

pow()
We use this function to raise a number to the given exponent. Its syntax follows:

pow(number, exponent);

rand()
This function is used to generate a random value between two given numbers. Its syntax follows:

rand(min, max);

round()
This function rounds a fraction to the next highest or the next lowest integer. Its syntax follows:

round(number);

sqrt()
The sqrt() function returns the square root of the argument number. Its syntax follows:

sqrt(number);

decbin() and bindec()

The decbin() function converts decimal numbers to binary numbers and the bindec() function converts binary numbers to decimal numbers. Their syntax follows:

decbin(decimalNumber);
bindec(binaryNumber);


dechex() and hexdec()
The dechex() and hexdec() functions are used to convert decimal numbers to hexadecimal numbers and hexadecimal numbers to decimal numbers, respectively. Their syntax follows:

dechex(decimalNumber);
hexdec(HexaDecNumber);

decoct() and octdec()
We use the decoct() and octdec() functions to convert decimal numbers to octal and the octal numbers to decimal numbers, respectively. The syntax of these functions follows:

decoct(decimalNumber);
octdec(OctalNumber);




Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.