# Tag Archives: PHP-math

The predefined math functions in PHP are used to handle the mathematical operations within the integer and float types. These math functions are part of… Read More
The doubleval() is an inbuilt function in PHP which is used to get a float value of a variable. This function is an alias of… Read More
The lcg_value() function is an inbuilt function in PHP which is used to generate the pseudo-random number in the range of (0, 1). Syntax: lcg_value()… Read More
The gmp_fact() is a built-in function in PHP which is used to calculate the factorial of a GMP number (GNU Multiple Precision : For large… Read More
The gmp_add() is a built-in function in PHP which is used to add two GMP numbers (GNU Multiple Precision : For large numbers). Syntax :… Read More
The gmp_gcd() is an in built function in PHP which is used to calculate the GCD of 2 GMP numbers (GNU Multiple Precision : For… Read More
While dealing with problems which have values consisting of a very high number of decimal digits such as (121.76763527823) we often come up with a… Read More
In the earlier days of computing, octal numbers and the octal numbering system was very popular for counting inputs and outputs because as it works… Read More
Many a times it happens that while solving mathematical expressions we require a number to be raised by a specific value. We also call this… Read More
In the earlier days of computing, octal numbers and the octal numbering system was very popular for counting inputs and outputs because as it works… Read More
Trigonometry is an important part of mathematics and PHP’s math functions provides us with some functions which are very useful for calculations involving trigonometry.The tan()… Read More
The base_convert() function in PHP is used to convert a number given in an arbitrary base to a desired base. Both the base should be between… Read More
While working with numbers, many times we need to convert the bases of number and one of the most frequent used conversion is binary to… Read More
We have often used the ceiling function in mathematical problems to round up a decimal number to next greater integral value. PHP provides us with… Read More
The abs() function is an inbuilt function in PHP which is used to return the absolute (positive) value of a number. The abs() function in… Read More