1. What is the function of absolute value?
2. What is the function of converting numbers between arbitrary binaries?
3. Binary conversion to decimal, decimal to Binary, 16 to decimal, decimal to 16, octal to decimal, decimal to octal, what are the functions that are converted into octets?
4. Take the value up, take down the value, what is the function of rounding?
5. What is the function of finding the maximum and minimum values in an array?
6. What are the two functions that generate a random number? Which is faster, how much faster?
7. what is the function to get pi value π?
What is the Y-order of 8.x? How does the square root of x mean?
Answer
1.number abs ( mixed $number
)
2. String base_convert ( String $number
, Int $frombase
, int $tobase
)
3.bindec (), Decbin (), Hexdec (), Dechex (), Octdec (), Decoct ()
4.ceil ($number), Floor ($number), round ($number [, $precision)
5.max ($array), Min ($array)
6.mt_rand ($min, $max), Rand ($min, $max); Mt_rand function 4 times times faster than Rand
7.pi ();
8.pow (x, y); sqrt (x);
PHP Math function questions