Name

Pi Field

Class

System.Math

Syntax

Math.PI

Return Value

A Double containing the approximate value of the irrational number pi

Description

This field returns the approximate value of the irrational number pi. In particular:

Math.PI = 3.14159265358979

Rules at a Glance

This is a Shared member, so it can be used without creating any objects.

VB.NET/VB 6 Differences

The Pi field is new to VB.NET.

See Also

E Field

Get VB.NET Language in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.