summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorTom Phoenix <rootbeer@teleport.com>1997-03-10 14:33:20 -0800
committerChip Salzenberg <chip@atlantic.net>1997-03-09 11:57:19 +1200
commit699e6cd4da8c333ef83554732e73ab6734463b5d (patch)
treed8bcd54601df9b269b7dcde596ad670112db0b0e /pod/perlsub.pod
parent30f5542a7acd82c7e159ff5c3b73ece6f5e3e50a (diff)
downloadperl-699e6cd4da8c333ef83554732e73ab6734463b5d.tar.gz
Re: Inline PI function
private-msgid: Pine.GSO.3.95q.970310143125.22489V-100000@kelly.teleport.com
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod4
1 files changed, 3 insertions, 1 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 9d725abe0d..f2a5b8ff0f 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -764,7 +764,9 @@ affected.
All of the following functions would be inlined.
- sub PI () { 3.14159 }
+ sub pi () { 3.14159 } # Not exact, but close.
+ sub PI () { 4 * atan2 1, 1 } # As good as it gets,
+ # and it's inlined, too!
sub ST_DEV () { 0 }
sub ST_INO () { 1 }