Download Math Units PhysicalValue - Math Units PhysicalValue Description, Math Units PhysicalValue Reviews
Contact
 


 

Download

 
Download Now
Perl Artistic License
Downloads till now: 10
 
 

Quick search

 



 

Rate this software

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

No. Votes

0

 

Linux

Assembler Tools , Bug Tracking , Code Generators , Compilers , Debuggers , Disassemblers , Internationalization , Interpreters , Libraries , Localization, Perl Modules , Preprocessors , Quality Assurance and Testing , UI (User Interfaces) , Version Control , Widgets ,

Windows

Mac

Mobile

Drivers

Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

Math Units PhysicalValue

 

Details

Last Update: 2008-02-09 23:01:09
Version: Math::Units::Phy
License/Program Type: Perl Artistic License
Publisher: Jettero Heller
Price:$0.00
Description:

Math::Units::PhysicalValue is an object oriented interface for handling values with units.
SYNOPSIS
use Math::Units::PhysicalValue;
my $exit = new Math::Units::PhysicalValue "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 kgm/s";
print "$momentumn"; prints 3,761.82 kgm/s
print ($rate + "0 miles/hour"), "n" prints 103.07 miles/hour
In more detail than the synopsis, Math::Units::PhysicalValue (aka PV) keeps track of the units on values that might work in the real world. It splits and stores the value and units separately as an array.
Using operator overloading, you can use them how you'd normally use any numeric value. There are probably more gotchas than I can enumerate, but you should be able to stay out of trouble if you keep string values on the right hand side of operators.
my $example1 = new Math::Units::PhysicalValue "10,000 ft";
my $example2 = "3500 ft";
my $example3 = "1000 ft";
print ($example1 + $example2 + $example3), "n"; prints: 13,500 ft
print ($example3 + $example2 + $example1), "n"; generates an error...
Perl is smart enough to do $example1 and $example2 in any order, but $example3 + $example2 is evaluated as the number 4500 (with no units) before it gets added to $example1 -- where the units won't match!
Requirements:
· Perl



Leave a comment




(optional)

What is 7-3?




0 comments


Add to

 Del.icio.us   Digg It   Furl   YahooMyWeb   Blinklist
 

Math Units PhysicalValue Version History

Product Date Added
Math Units PhysicalValue Math::Units::Phy 2008-02-09 23:01:09


Related Software

Conjury::C::GNU
From category: Libraries
Conjury::C::GNU 1.004 is libraries software developed by James Woodyatt. Conjury::C::GNU is a Perl Conjury with the GNU C/C++ tools. SYNOPSIS c_compiler Vendor => \'GNU\', La...
Linux Test Project
From category: Quality-Assurance-and-Testing
The Linux Test Project is a joint project with SGI, IBM, OSDL, Bull, and Wipro Technologies....
Allegro 4.2.1
From category: Libraries
Allegro 4.2.1 is libraries software developed by Shawn Hargreaves. Allegro is a game programming library for C/C++ developers distributed freely, supporting the following platforms: DOS, Unix (Linu...
Hash Case
From category: Libraries
Hash::Case is a base class for hashes with key-casing requirements....
CFL
From category: Libraries
CFL 1.2.7 is libraries software developed by Mark Lindner. CFL is a C library of useful functions that simplify systems software development on System V UNIX. The library includes routines f...
Class::Meta::Express
From category: Libraries
Class::Meta::Express 0.04 is libraries software developed by David Wheeler. Class::Meta::Express is a Perl module for concise, expressive creation of Class::Meta classes. Synopsis p...
Chroniton::Config
From category: Libraries
Chroniton::Config 0.03 is libraries software developed by Chroniton::Config Team. Chroniton::Config it manages config file for Chroniton. SYNOPSIS my $config = Chroniton::Config-...
Google Checkout General Util
From category: Perl-Modules
Google::Checkout::General::Util is a Perl module from Google....
Etcsvn
From category: Version-Control
Etcsvn 0.2.1 is version control software developed by Joseph Rawson. Etcsvn is a command line program for managing system configurations in subversion. Etcsvn doesn\'t make a working copy out of yo...
Class::InsideOut::Manual::About
From category: Libraries
Class::InsideOut::Manual::About 1.03 is libraries software developed by David A. Golden. Class::InsideOut::Manual::About is a guide to this and other implementations of the inside-out technique. \...
Scmbug
From category: Bug-Tracking
Scmbug is a system integrating software configuration management (SCM) with bug-tracking....
FEST Assert
From category: Quality-Assurance-and-Testing
FEST-Assert is a Java library that provides a fluent interface for writing assertions....
Exporter::Easy
From category: Libraries
Exporter::Easy 0.16 is libraries software developed by Fergal Daly. Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols. SYNOPSIS In module YourModule.pm:...
FifoEmbed
From category: Libraries
FifoEmbed 2.1.1 is libraries software developed by Dan Muresan. FifoEmbed is a thread-safe basic queue, packet queue, and FIFO allocator. When programming device drivers, network stacks, and...
glibmm215
From category: Libraries
glibmm is a GNOME library....
 

Top Downloads

 
1. USBDeview
2. VSO Drive Inspector Tool
3. H&H China2Go Talking PhraseBook (Cantonese Ed.)
4. Canon PIXMA MP220 MP Drivers
5. Canon PIXMA MP210 MP Navigator EX
6. LingvoSoft Middle Eastern Pack

DownloadTube Editor Reviews

 
1. iOrgSoft 3GP Video Converter
iOrgSoft 3GP Video Converter is a smart, reliable, affordabl...
2. Easy Time Control Professional
Easy Time Control Professional Edition is a smart software s...
3. AceErase File Shredder
AceErase is an easy to use, smart and secure file shredder a...
4. Video Converter
Video Converter is an easy-to-use tool that enables the user...
5. Andromeda Hyper 3GP Converter
Andromeda Hyper 3GP Converter is a simple, intuitive and eas...
6. Andromeda Hyper AppleTV Converter
Andromeda Hyper AppleTV Converter is an easy and intuitive t...
7. anyTV Free
anyTV is a smart tool that enables you to watch local TV, wo...
8. FineRecovery Enterprise
FineRecovery Enterprise is a great solution to recover the d...
9. EDraw Organizational Chart
Edraw Organizational Chart is a feature-rich, powerful and s...
10. Algolab Raster to Vector Conversion Toolkit
Algolab Raster to Vector Conversion Toolkit is a powerful ve...

Software Reviews Full List



Recent Blog Posts

 
1. Google Chrome – It’s Finally Here. Will A Revolution Begin?
First, it was the rumors. Then, Google announced it official...
2. An Amazing Free Document Processing Software: LyX
The documents management task could be difficult in absence ...
3. DownloadTube Toolbar is Available For Free Download
Recently, we have made available for free download the Dow...
4. A Revolution in Web Browsing: The New Firefox 3.1b1 Already Beats All Speed Records
The latest beta1 release of Mozilla Firefox 3.1 shows majo...
5. Some Little, Nice, Freeware Tools You May Never Know When You'll Need
This time I won’t speak about a single freeware program that...
6. How To Increase The Quality of Your News Articles For Search Engine Spiders
The process of articles publishing is a common practice to...
7. Digg in Press: Tips and Opinions
Regarding Digg social bookmarking service there are many a...
8. Ubuntu Linux and Windows Can Share The Desktop In Absence Of Virtual Machines
Many people asked themselves how to run Ubuntu Linux and W...
9. 2.5 Millions Downloads for FireTune: It Makes Mozilla Firefox To Run With The Speed of Light
It is well known the fact that even the latest version of M...
10. Image Galleries on Autopilot: Instant Gallery Maker
The creation of image galleries ready for web publishing...

Last 20 Scripts

 
1. Ninja Blog
Ninja Blog is a PHP based blogging solution. Based upon word
2. Dragonfly CMS
DragonflyCMS is a content management system based on PHP-Nuk
3. Diferior
Diferior is a flexible, customizable, both user and develope
4. DBHcms
DBHcms is a search engine optimized and lightweight content
5. concrete5
concrete5 content management system could be a rapid solutio
6. bloofoxCMS
bloofoxCMS is a lightweight content management system based
7. PHP Membership
PHP Membership script allows you to add password protection
8. Tube Spider
Tube Spider allows your visitors to search videos in Youtube
9. Azure CMS
Azure CMS is a universal software product for the developmen
10. Azure Portal
Azure Portal is a social networking script made with PHP pro
11. One Frog
One Frog is a content management system that allows you to u
12. Cigmas CMS
Cigmas CMS is a powerful web content management system for g
13. WebWord CMS
WebWord CMS is a full featured web content management system
14. Marjetica Content Management System
Marjetica Content Management System is a powerful, easy to u
15. Phenotype CMS
Phenotype CMS is a PHP/MySQL - Smarty Content Application Fr
16. Chupix CMS
Chupix is a content management system written in PHP and sto
17. Interspire Website Publisher
Interspire Website Publisher (formerly ArticleLive) is a con
18. Interspire Email Marketer
Interspire Email Marketer (formerly SendStudio) is a web bas
19. Comments RAM
Comments RAM is a lightweight PHP script that allows you to
20. KoolAjax
KoolAjax facilitates data exchange between server-side and c