NAME ^

php_math.pir - PHP math Standard Library

DESCRIPTION ^

Functions ^

int abs(int number)
Return the absolute value of the number
float acos(float number)
Return the arc cosine of the number in radians
float acosh(float number)
Returns the inverse hyperbolic cosine of the number, i.e. the value whose hyperbolic cosine is number
float asin(float number)
Returns the arc sine of the number in radians
float asinh(float number)
Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number
float atan(float number)
Returns the arc tangent of the number in radians
float atan2(float y, float x)
Returns the arc tangent of y/x, with the resulting quadrant determined by the signs of y and x
float atanh(float number)
Returns the inverse hyperbolic tangent of the number, i.e. the value whose hyperbolic tangent is number
string base_convert(string number, int frombase, int tobase)
Converts a number in a string from any base <= 36 to any base <= 36
int bindec(string binary_number)
Returns the decimal equivalent of the binary number
float ceil(float number)
Returns the next highest integer value of the number
float cos(float number)
Returns the cosine of the number in radians
float cosh(float number)
Returns the hyperbolic cosine of the number, defined as (exp(number) + exp(-number))/2
string decbin(int decimal_number)
Returns a string containing a binary representation of the number
string dechex(int decimal_number)
Returns a string containing a hexadecimal representation of the given number
string decoct(int decimal_number)
Returns a string containing an octal representation of the given number
float deg2rad(float number)
Converts the number in degrees to the radian equivalent
float exp(float number)
Returns e raised to the power of the number
float expm1(float number)
Returns exp(number) - 1, computed in a way that accurate even when the value of number is close to zeroNOT IMPLEMENTED. WARNING: this function is experimental.
float floor(float number)
Returns the next lowest integer value from the number
float fmod(float x, float y)
Returns the remainder of dividing x by y as a float
int hexdec(string hexadecimal_number)
Returns the decimal equivalent of the hexadecimal number
float hypot(float num1, float num2)
Returns sqrt(num1*num1 + num2*num2)
bool is_finite(float val)
Returns whether argument is finite
bool is_infinite(float val)
Returns whether argument is infinite
bool is_nan(float val)
Returns whether argument is not a number
float log(float number, [float base])
Returns the natural logarithm of the number, or the base log if base is specified
float log10(float number)
Returns the base-10 logarithm of the number
float log1p(float number)
Returns log(1 + number), computed in a way that accurate even when the value of number is close to zeroNOT IMPLEMENTED. WARNING: this function is experimental.
string number_format(float number [, int num_decimal_places [, string dec_seperator, string thousands_seperator]])
Formats a number with grouped thousands
int octdec(string octal_number)
Returns the decimal equivalent of an octal string
float pi(void)
Returns an approximation of pi
number pow(number base, number exponent)
Returns base raised to the power of exponent. Returns integer result when possible
float rad2deg(float number)
Converts the radian number to the equivalent number in degrees
float round(float number [, int precision])
Returns the number rounded to specified precision
float sin(float number)
Returns the sine of the number in radians
float sinh(float number)
Returns the hyperbolic sine of the number, defined as (exp(number) - exp(-number))/2
float sqrt(float number)
Returns the square root of the number
float tan(float number)
Returns the tangent of the number in radians
float tanh(float number)
Returns the hyperbolic tangent of the number, defined as sinh(number)/cosh(number)


parrot