# Tag Archives: PHP-math

PHP is a server-side scripting language that can be used for developing web applications or websites. In this article, we will see how to deployâ€¦ Read More
In this article, we will see how to print the multiplication table of any given number using PHP. To make the multiplication table, first, weâ€¦ Read More
Write a program to reverse the digits of an integer. Examples :   Input : num = 12345 Output: 54321 Input : num = 876â€¦ Read More
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 times it happens that while solving mathematical expressions we require a number to be raised by a specific value. We also call this powerâ€¦ 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