SQL PHP HTML ASP JavaScript articles and free scripts to download If you are facing any problem in viewing this page, please tell us
 

PHP Math functions


Mathematics ( or math ) functions are frequently used in our scripts. There are PHP math functions to take care of addition subtraction multiplication and many other mathematical requirements.

We will discuss these math functions and try to develop some sample codes on these to further understand on how to use these functions.



Addition subtraction multiplication & Division

These simple scripts are easy to understand and develop. Let us try with some sample code using these basic mathematical functions. Read More

max() & min()

To get the maximum value between numbers we can use max() math function. Same way we can use min() minimum functions to get minimum value out of a set of numbers. Read More

Rounding off variable

We can round off a complex math variable with decimal places to nearest integer by using round() function. Read More


Generating Random Number
In any game or while generating passwords we use random number generators to give us random numbers. Read More


Formatting numbers
We can format numbers by specifying number of decimal places or use comma ( , ) to mark thousand places or use any other marks in our number formattingRead More


Next higher or lower number by using ceil & floor
What is the next higher number in hundredth place of 745 ? it is 800 by using ceil function. Same way 700 is the floor value of 745. Read More

Modulus or reminder of a division

We can get the modulus of two number by using modulus ( % ) function. Read More
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked

Sections
PHP
JavaScript
ASP
HTML
SQL
Photoshop
Articles SEO
PHP Tutorials
Math Functions
PHP Monthly Planner
PHP Introduction
Loops & structure
Array
Date & Time
Functions
Form Handling
File Handling
Math Functions
String Functions
GD Functions
Comment Posting
Content Management
PHP & Ajax
Popular Tutorials
Drop down list
File Upload
Signup script
Member Login
Line Graph
PHP MySQL Paging
PHP Calendar
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.