The As Double sitting at the end of the method tells Visual Basic .NET that this PI in the code above is a constant defined in Visual Basic .NET that defines the .