This command is used to get the tangent conversion of a number.
value − The value as an input to the tangent function.
This method returns the tangent value of the input-ed number.
/* Main program */ say tan(45)
When we run the above program we will get the following result.