"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Module: modUnitConversion
Convert units of measurement such as degrees, distance, volume, and calendar dates
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modUnitConversion module
|
|
CelsiusToFahrenheit
|
Procedure
|
Converts from celsius (centigrade) to farenheit
|
|
ComputeWindChillEnglish
|
Procedure
|
Calculate the wind chill for exposed human skin.
Wind Chill for exposed human skin is expressed as a function of wind speed in Miles per hour and temperature in degrees Fahrenheit. This function is valid for temperature ranges between -40 and 50 degrees, and wind speeds of 4 to 45 mph.
Wind-chill is calculated using a standard meteorological formula:
T(wc) = 0.0817 (3.71 V * sqr(0.5) + 5.81 - V/4) (T - 91.4) + 91.4
where:
T(wc) is wind-chill in degrees Fahrenheit
V is wind speed in statute miles per hour
T is ambient temperature in degrees Fahrenheit
|
|
ComputeWindChillMetric
|
Procedure
|
Calculate the wind chill for exposed human skin.
Wind Chill for exposed human skin is expressed as a function of wind speed in Kilometers an Hour and temperature in degrees Celsius.
Wind-chill is calculated using a standard meteorological formula:
T(wc) = 0.045(5.27V * sqr(0.5) + 10.45 - 0.28V) (T - 33) + 33
where:
T(wc) is wind-chill in degrees Celsius
V is wind speed in statute Kilometers an Hour
T is ambient temperature in degrees Celsius
|
|
ConvertDistance
|
Procedure
|
Converts between distance units.
This function first normalizes metric and English values to meters, then multiplies by the conversion factor for meters.
|
|
ConvertVolume
|
Procedure
|
Converts between volume units.
This function first normalizes metric and English values to liters, then multiplies by the conversion factor for liters.
|
|
ConvertWeight
|
Procedure
|
Converts between weight units.
The function normalizes metric and English values to grams, then multiplies by the conversion factor for grams.
|
|
DegreesToRadians
|
Procedure
|
Convert degrees to radians (180 degrees equals PI radians)
|
|
FahrenheitToCelcius
|
Procedure
|
Converts farenheit to celsius (centrigrade)
|
|
GregorianDateToJulianDate
|
Procedure
|
Returns a Julian Date given a Gregorian date
|
|
GregorianDateToJulianDay
|
Procedure
|
Converts the passed Gregorian date to a Julian day
|
|
JulianDateToGregorianDate
|
Procedure
|
Returns a standard date given a Julian Date
|
|
RadiansToDegrees
|
Procedure
|
Convert radians to degrees (PI radians equals 180 degrees)
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|