DOCUMENTATION FOR UNIT.PHP



File Purpose:File Depedencies
To convert units from many different units to pounds.N/A
External Function callPurpose
N/AN/A
External VariablesPurpose
N/AN/A
Internal Function callPurpose
ConvertConverts units from those that are found in lab conditions to those required by the government.
Local VariablesPurpose
unitsholds the unit abbr. (i.e. "kg" for kilograms) conversion
valueholds the value for conversion.
CommentsIntended use, from a select statement we are given the unit information and a value which combine to make an "amount" that needs to be converted to pounds. From the given unit which I'm assuming to be a string I perform the appropriate conversion equation and return the result for output.