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;
CIRCUMFERENCE @radius = 2 |
--------------------------+
12.5663706143592|Last updated
Was this helpful?