Found 34494 Articles for Programming

log1p() function in PHP

karthikeya Boyini
Updated on 27-Dec-2019 06:52:28

71 Views

The log1p() function Returns log(1+number), computed in a way that is accurate even when the value of number is close to zero.Syntaxlog1p(val)Parametersval − The specified numberReturnThe log1p() function Returns log(1+number), computed in a way that is accurate even when the value of number is close to zero.Example Live DemoOutput0.69314718055995ExampleLet us see another example − Live DemoOutput0ExampleLet us see another example − Live DemoOutput2.39789527279841.3083328196502

log10() function in PHP

Samual Sam
Updated on 27-Dec-2019 06:51:22

58 Views

The log10() function Return the base-10 logarithm of a number.Syntaxlog10(num)Parametersnum − The value to calculate the logarithm for.ReturnThe log10() function Returns base 10 logarithm of a number.Example Live DemoOutput0ExampleLet us see another example − Live DemoOutput-INFExampleLet us see another example − Live DemoOutput10.43136376415899

log() function in PHP

karthikeya Boyini
Updated on 27-Dec-2019 06:49:59

165 Views

The log() function Returns the natural logarithm of a number.Syntaxlog(num, base)Parametersnum − The value for which you want to calculate the logarithmbase − The logarithmic baseReturnThe log() function Returns the natural logarithm of a number.Example Live DemoOutput0ExampleLet us see another example − Live DemoOutput-INFExampleLet us see another example − Live DemoOutput2.3025850929940.99325177301028

lcg_value() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:51:36

30 Views

The lcg_value() function Returns a pseudo random number in the range 0 - 1Syntaxlcg_value()ParametersReturnThe lcg_value() function Returns a pseudo random float value in the range 0 - 1.Example Live DemoOutput0.42510822828987Let us see another example generating different values every time lgc_value() function is used.Example Live DemoOutput0.0016752472603958 0.95593815480995 0.57392418877843 0.1374706663408

is_nan() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:51:50

51 Views

The is_nan() function checks for ‘not a number’ value. It Returns TRUE if num is 'not a number', else FALSE is Returned.Syntaxis_nan(num)Parametersnum − The value to checkReturnThe is_nan() function Returns TRUE if num is 'not a number', else FALSE is Returned.ExampleLet us see another example −Example

is_infinite() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:44:22

32 Views

The is_infinite() function checks if a value is infinite or not. It Returns true if num is an infinite number, else it Returns false.Syntaxis_infinite(num)Parametersnum − The number to be checked.ReturnThe is_infinite() function Returns true if num is an infinite number, else it Returns false.ExampleExample Live DemoOutput1

is_finite() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:45:33

28 Views

The is_finite() function checks if a value is finite or not. It Returns true if num is a finite number, else it Returns false.Syntaxis_finite(num)Parametersnum − The number to be checked.ReturnThe is_finite() function Returns true if num is a finite number, else it Returns false.Example Live DemoOutput1Let us see another example −Example Live DemoOutput

hypot() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:45:55

65 Views

The hypot() function is used to calculate the hypotenuse of a right-angle triangle. It Returns the length of the hypotenuse in float. Of a right-angled triangle, the longest side is hypotenuse.Syntaxhypot(a, b)Parametersa − Length of first sideb − Length of second sideReturnThe hypot() function Returns the length of the hypotenuse in float.Example Live DemoOutput8.24621125123538.5440037453175

hexdec() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:46:17

87 Views

The hexdec() function converts hexadecimal number to decimal number.Syntaxhexdec(val)Parametersval − The hexadecimal to be converted.ReturnThe hexdec() function Returns the decimal value of val, which is hexadecimal.Example Live DemoOutput1314735

fmod() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:46:50

146 Views

The fmod() function Returns the modulo of dividend/ divisor. Floating modulo in fmod.Syntaxfmod(dividend/ divisor)Parametersdividend − The number to be divided.divisor − This is the number that divides.ReturnThe fmod() function Returns the remainder of dividend/ divisor.Example Live DemoOutput3

Advertisements