## PHP | Math Functions Complete Reference

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 »

## PHP | doubleval() Function

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 »

## PHP | lcg_value() Function

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 »

## PHP | gmp_fact() for large factorials

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 »

## PHP | gmp_gcd() Function

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 »

## PHP | round( ) Function

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 »

## PHP | octdec( ) Function

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 »

## PHP | pow( ) Function

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 »

## PHP | decoct( ) Function

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 »

## PHP | tan( ) Function

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 »

## PHP | base_convert( ) Math Function

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… Read More »

## PHP | bindec( ) Function

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 »

## PHP | ceil( ) Function

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 »

## PHP | abs() Function

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 »