PI

Description

Returns the constant value of PI (PI in Transact-SQL).

Sample Source Pattern

Syntax

PI( )

Arguments

This method does not receive any parameters.

Return Type

Float.

Examples

CREATE PROCEDURE CIRCUMFERENCE @radius float
AS 
     SELECT 2 * PI() * @radius;
GO:

EXEC CIRCUMFERENCE @radius = 2;

Last updated