Acme-Pi
view release on metacpan or search on metacpan
lib/Acme/Pi.pm view on Meta::CPAN
use strict;
use warnings;
package Acme::Pi; # git description: v3.1415926-16-g35c9c3f
# vim: set ts=8 sts=2 sw=2 tw=100 et :
# ABSTRACT: Mmm, pie
# KEYWORDS: pi Ï
use utf8;
my $version = atan2(1,1) * 4; $Acme::Pi::VERSION = substr("$version", 0, 16);
use Exporter 5.57 'import';
our @EXPORT = ('$Ï', '$ð¿', 'Ï', 'ð¿');
use Math::BigFloat;
sub Ï () { Math::BigFloat->new(1)->batan2(1) * 4 }
sub ð¿ () { Ï }
our $Ï = our $ð¿ = Ï;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Acme::Pi - Mmm, pie
=head1 VERSION
version 3.14159265358979
=head1 SYNOPSIS
use Acme::Pi;
my $area = $Ï * $radius**2;
my $volume = 4 * Ï / 3 * $radius**3;
=head1 DESCRIPTION
=for Pod::Coverage ð¿ Ï
This distribution was created to celebrate L<Pi Day|http://www.piday.org/> 2014,
as well as to demonstrate yet another example of a pathological C<$VERSION>.
Additionally, it exports two variables: C<$Ï> and C<$ð¿>,
and two constants, C<Ï> and C<ð¿>, defined as:
atan2(1,1) * 4;
This module also defines its own C<$VERSION> as a fixed-point value approximating
Ï (using as many digits as is supported on the local machine).
It is intended that version parsers in the toolchain (L<Module::Metadata>,
L<ExtUtils::MakeMaker>'s C<< MM->parse_version >>, L<Parse::PMFile>) should
be capable of statically parsing this package's C<$VERSION>.
=head1 ACKNOWLEDGEMENTS
=for stopwords QA Hackathon
This module was brought to you by the
L<2014 QA Hackathon in Lyon, France|http://act.qa-hackathon.org/qa2014>, as well as
( run in 0.464 second using v1.01-cache-2.11-cpan-39bf76dae61 )