PI Function in SQLThe PI() is a mathematics function which returns the pi value. In this section you will also learn how to use round function with the PI function. In Structured Query Language, this function does not take any argument. Syntax of PI FunctionIn this SELECT syntax, we have to pass that numeric number in the function whose tan value we want to find. Examples of PI functionExample 1: This example returns the pi value of the specified number: Output:
Example 2: This example returns the pi value of the specified number: Output:
Example 3: This example returns the pi value representation of 19: Output:
Example 4: This example returns the pi value of the specified number: Output:
Example 5: The following example uses the ROUND function with the PI function: Output:
Example 6: This example returns the pi value of the specified number after division: Output:
Next TopicLIKE Function in SQL
|