Math Functions in PHP allow for developers to perform mathematical calculations within their PHP scripts.
List
- number abs ( mixed $number ) returns absolute value
- float acos ( float $arg ) returns arc cosine
- float acosh ( float $arg ) returns arc hyperbolic cosine
- float asin ( float $arg ) returns arc sine
- float asinh ( float $arg ) returns arc hyperbolic sine
- float atan2 ( float $y , float $x ) returns arc tangent from two variables
- float atan ( float $arg ) returns arc tangent
- float atanh ( float $arg ) returns arc hyperbolic tangent
- string base_convert ( string $number , int $frombase , int $tobase ) returns number in different base
- number bindec ( string $binary_string ) converts binary to decimal
- float ceil ( float $value ) rounds up to integer
- float cos ( float $arg ) returns cosine
- float cosh ( float $arg ) returns hyperbolic cosine
- string decbin ( int $number ) converts decimal to binary
- string dechex ( int $number ) converts decimal to hexadecimal
- string decoct ( int $number ) converts decimal to octal
- float deg2rad ( float $number ) converts degrees to radians
- float exp ( float $arg ) returns e raised to value
- float expm1 ( float $arg ) returns e raised to value with 1 subtracted from result
- float floor ( float $value ) rounds down to integer
- float fmod ( float $x , float $y ) returns float remainder
More to be added in the future.