Found 34494 Articles for Programming

bindec() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:42:52

69 Views

The bindec() function convert a binary number to decimal number.Syntaxbindec(bin_str)Parametersbin_str − The binary string to convertReturnThe bindec() function returns decimal value of the specified string bin_strExample Live DemoOutputThe output displays that the bindec() function returns a decimal value:13

base_convert() function in PHP

Samual Sam
Updated on 26-Dec-2019 10:31:17

52 Views

The base_convert() function converts a number from one base to another, for example, octal number to decimal number. The base mentioned here should be between 2 and 36. Digits in numbers with a base greater than 10 is represented with the letters a-z i.e a is 10, , d is 13, z is 35, etc.Syntaxbase_convert(num, original_base, to_base)Parametersnum − The number to convertoriginal_base − The original base. The base mentioned here should be between 2 and 36. Digits in numbers with a base greater than 10 is represented with the letters a-z i.e a is 10, , d is 13, z ... Read More

atanh() function in PHP

karthikeya Boyini
Updated on 26-Dec-2019 10:29:37

64 Views

The atanh() function returns the inverse hyperbolic tangent of the specified number.Syntaxatanh(num)Parameters num − The specified number. Required.ReturnThe atanh() function returns a float value, which is the hyperbolic tangent of a number.Example Live DemoOutputINF-INFExampleLet us see another example − Live DemoOutput1.05930617082321.4722194895832-1.4722194895832ExampleLet us see another example − Live DemoOutput0

atan2() function in PHP

Samual Sam
Updated on 26-Dec-2019 10:28:28

91 Views

The atan2() function returns the arc tangent of two variables.Syntaxatan2(val1, val2)Parametersval1 − The dividendval2 − The divisorReturnThe atan2() function returns the arc tangent of val2/ val1 in radians. The returned value is between -Pi and Pi.Example Live DemoOutput0.785398163397450.78539816339745ExampleLet us see another example − Live DemoOutput-2.3561944901923-2.2318394956456

atan() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:43:59

82 Views

The atan() function return the arc tangent of a number. It returns a float, which is a numeric value between -Pi/2 and Pi/2 radians.Syntaxatan(val)Parametersval − The value for which you want to get the arc tangent.ReturnThe atan() function returns the arc tangent of a number.Example Live DemoOutput1.5208379310731.10714871779410.54041950027058-0.54041950027058

asinh() function in PHP

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

107 Views

The asinh() function returns the inverse hyperbolic sine of a number.Syntaxasinh(num)Parametersnum − The number to be specified.ReturnThe asinh() function returns the inverse hyperbolic sine of a number.Example Live DemoOutput0.881373587019541.3258977669011

asin() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:36:44

94 Views

The asin() function returns the arc sine of a number. It specifies a number in the range -1 to 1. Returns NaN, if num is not in the range -1 to 1.Syntaxasin(num)Parametersnum − The number for which you want to return the arc sine. Specifies a number in range -1 to 1.ReturnThe asin() function returns the arc sine of a number. It specifies a number in the range -1 to 1. Returns NaN, if num is not in the range -1 to 1.Example Live DemoOutput0.5235987755983-1.1197695149986Let us see another example −Example Live DemoOutput01.5707963267949-1.5707963267949NAN

acosh() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:37:08

93 Views

The acosh() function returns the inverse hyperbolic cosine of the specified number.Syntaxacosh(num)Parametersnum − The number for which we want the inverse hyperbolic cosine.ReturnThe acosh() function returns the inverse hyperbolic cosine of a number.Example Live DemoOutput01.0469679150032

acos() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:37:44

112 Views

The acos() function returns the arc cosine of a number. It specifies a number in the range -1 to 1. Returns NaN, if num is not in the range -1 to 1.Syntaxacos(num)Parametersnum − The number for which you want to return the arc cosine. A number in range -1 to 1.ReturnThe acos() function returns the arc cosine of the specified number.Returns NaN, if number is not in the range -1 to 1.Example Live DemoOutput1.04719755119662.6905658417935Let us see another example −Example Live DemoOutput1.570796326794903.1415926535898NAN

abs() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:38:08

171 Views

The abs() function returns the absolute value of a number.Syntaxabs(num)Parametersnum − The number for which we want to get the absolute value. If the num is float, then the return type will be float, otherwise it is an integer.ReturnThe abs() function returns the absolute value of the specified number.Example Live DemoOutput3.19.7Let us see another example −Example Live DemoOutput2050

Advertisements