Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Math::Fraction 0.53b

    Download button

    No screenshots available
    Downloads: 365  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kevin Atkinson | More programs
    Perl Artistic License / FREE
    July 20th, 2007, 08:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Math::Fraction description

    A Perl module to manipulate exact fractions.

    Math::Fraction is a Perl module to manipulate exact fractions.

    SYNOPSIS

    use Math::Fraction;

    $a = frac(1,2); $b = frac(6,7);

    print "$a + $b = ", $a + $b, "$a * $b = ", $a * $b;
    print $a->num;



    Product's homepage

    Here are some key features of "Math::Fraction":

    · Being able to add, subtract, multiply, and divide, among other things just like you would normal numbers that's to the overload module.
    · Being able to convert a decimal, including repeating ones, into a fraction. For example, 1.142857142857 would become 8/7.
    · Being able to control how the fraction is displayed. For example 8/7 verses 1 1/7
    · Being able to use arbitrary size numbers in the numerator and the denominator.
    · Being able to covert between SMALL (using normal floats/integers) and BIG (using arbitrary size floats/integers) as needed so you do not have to worry about it. (New as of ver .4a)
    · Being able to have multiple default sets so that a function can modify the defaults with out effecting other functions (New as of ver .4a)

    Requirements:

    · Perl

      


    TAGS:

    manipulate fractions | exact fractions | Perl module | Math | manipulate | exact

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM