Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

PI Field

Class

System.Math

Syntax

Dim result As Double = Math.PI

Description

The PI field returns the approximate value of the irrational number p, approximately 3.14159265358979.

Usage at a Glance

This is a shared member of the System.Math class, so it can be used without an instance.

Version Differences

The PI field is new to VB under .NET.

See Also

E Field

Категории