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 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.