PHP log10() FunctionThe log10() function is predefined php math function. It is used to returns the base-10 logarithm of a number. Syntax:
Note: num is the input number with Base fixed base 10.Example1Output: Your number is: 5 By using log10() function your number is : 1.6094379124341 Example2Output: Your number is: 1.234 By using log10() function your number is : 0.2102609254832 Example3Output: Your number is: 1 By using log10() function your number is : 0 Example4Output: Your number is: 0 By using log10() function your number is : -INF Example5Output: Your number is: -1 By using log10() function your number is : NAN
Next TopicPHP Math
|