[mercury-users] Perl implementation of Rational numbers (documentation)

Terrence Brannon princepawn at earthlink.net
Thu May 3 22:15:30 AEST 2001


Discussion to follow:

NAME
    Rational - Perl extension for manipulating rational numbers

SYNOPSIS
      use Rational;

      my $r1 = Rational->new(numerator=>1, denominator=>3);
      my $r2 = Rational->new(numerator=>2, denominator=>5);

      my $rs = $r1->add($r2);

      $rs->print;

DESCRIPTION
    This is a Perl extension allowing you to manipulate rational numbers via
    an object-oriented Perl API.

  EXPORT

    None by default.

AUTHOR
    T. M. Brannon - tbone at cpan.org

    princepawn at http://www.perlmonks.org

SEE ALSO
    perl(1).


--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list