exp

(PHP 4, PHP 5, PHP 7) Calculates the exponent of e float exp ( float $arg ) Returns e raised to the power of arg. Note: 'e' is the base of the natural system of logarithms, or approximately 2.718282. Parameters: arg The argument to process Returns: 'e' raised to the power of arg Examples:

deg2rad

(PHP 4, PHP 5, PHP 7) Converts the number in degrees to the radian equivalent float deg2rad ( float $number ) This function converts number from degrees to the radian equivalent. Parameters: number Angular value in degrees Returns: The radian equivalent of number Examples: deg2rad()

decoct

(PHP 4, PHP 5, PHP 7) Decimal to octal string decoct ( int $number ) Returns a string containing an octal representation of the given number argument. The largest number that can be converted is 4294967295 in decimal resulting to "37777777777". Parameters: number Decimal value to convert Returns: Octal string representation of number

dechex

(PHP 4, PHP 5, PHP 7) Decimal to hexadecimal string dechex ( int $number ) Returns a string containing a hexadecimal representation of the given unsigned number argument. The largest number that can be converted is PHP_INT_MAX * 2 + 1 (or -1): on 32-bit platforms, this will be 4294967295 in decimal, which results in dechex() returning ffffffff. Parameters: number The de

decbin

(PHP 4, PHP 5, PHP 7) Decimal to binary string decbin ( int $number ) Returns a string containing a binary representation of the given number argument. Parameters: number Decimal value to convert Range of inputs on 32-bit machines positive number negative number return value 0 0 1 1 2 10 ... normal progression ... 2147483646 1111111111111111111111111111110 2147

cosh

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Hyperbolic cosine float cosh ( float $arg ) Returns the hyperbolic cosine of arg, defined as (exp(arg) + exp(-arg))/2. Parameters: arg The argument to process Returns: The hyperbolic cosine of arg See also: cos() -

cos

(PHP 4, PHP 5, PHP 7) Cosine float cos ( float $arg ) cos() returns the cosine of the arg parameter. The arg parameter is in radians. Parameters: arg An angle in radians Returns: The cosine of arg Examples: cos() example <?php echo cos(M_PI); // -1 ?>

ceil

(PHP 4, PHP 5, PHP 7) Round fractions up float ceil ( float $value ) Returns the next highest integer value by rounding up value if necessary. Parameters: value The value to round Returns: value rounded up to the next highest integer. The return value of ceil() is still of type float as the value range of float is usually bigger than that of inte

bindec

(PHP 4, PHP 5, PHP 7) Binary to decimal number bindec ( string $binary_string ) Returns the decimal equivalent of the binary number represented by the binary_string argument. bindec() converts a binary number to an integer or, if needed for size reasons, float. bindec() interprets all binary_string values as unsigned integers. This is because bindec() sees the most significant bit as another order of magnitude rather tha

base_convert

(PHP 4, PHP 5, PHP 7) Convert a number between arbitrary bases string base_convert ( string $number, int $frombase, int $tobase ) Returns a string containing number represented in base tobase. The base in which number is given is specified in frombase. Both frombase and tobase have to be between 2 and 36, inclusive. Digits in numbers with a base higher than 10 will be represented with the letters a-z, with a meaning 10, b me