github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jettero / pv

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • 1.0007
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Perl module to automatically handle units. — Read more

  cancel

http://search.cpan.org/perldoc?Math::Units::PhysicalValue

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

announce overflow bugfix and version up 
jettero (author)
Fri May 15 04:20:08 -0700 2009
commit  c9f0d6b39e49e400826783185f5d5b9636a3815e
tree    bf2c85d811a4035db9a73d0bada4a1f8ea0e7da1
parent  2c8643129e00cabc37946eeadb130e8743b3c968
pv /
name age
history
message
file Changes Loading commit data...
file MANIFEST
file Makefile.PL
file PhysicalValue.pm
file README
directory lib/
directory t/
README
AUTHOR'S NOTE 

    I was unhappy with the unfinished Math::Calc::Units; but I was
    happy with Math::Units.  I felt that there should be a perl
    module that handles units in a human readable way.

    -Paul

SYNOPSIS

    use Math::Units::PhysicalValue qw(PV);

    my $exit  = PV "10,000 ft";
    my $open  = "3500 ft";
    my $delay = "43 s";

    my $dist  = $exit - $open;
    my $rate  = $dist / $delay;

    my $weight = "180 lbs";
    my $momentum = ($weight * ( ($exit - $open) / $delay )) + "0 kg*m/s";

    print "$momentum\n";                     # prints 3,761.82 kg*m/s
    print ($rate + "0 miles/hour"), "\n"     # prints 103.07 miles/hour
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server