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
Tag Archives: PHP-math
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