Math functions Flashcards
(46 cards)
abs()
return absolute value
exp()
calculate exponent of e
fmod()
returns the floating point remainder (modulo) of the division
log10()
base-10 logarithm
log()
natural logarithm
max()
find highest value
min()
find lowest value
pi()
get value of pi
pow(base, exp)
exponential expression
sqrt()
square root
is_finite()
check finite value
is_infinite()
check infinite value
is_nan()
check not a number
base_convert()
convert number between bases
decbin()
convert to binary
bindec()
convert to decimal
dechex()
convert to hexadec
hexdec()
convert to decimal
decoct()
convert to octal
octdec()
convert to decimal
deg2rad()
convert to radian
rad2deg()
convert to degree
getrandmax()
show largest possible random value
mt_getrandmax()
show largest possible random value