Pi Function
The Pi
function returns an approximation for
the mathematical value of . The compiler expands this function
inline so it can treat the Pi
function as a
constant and evaluate constant expressions that use
Pi
. The compiler also recognizes the context and
uses the appropriate type and precision for its approximation (that
is, Single
, Double
, or
Extended
). As a result, you get a better
approximation of than you could get by writing a decimal
constant.