|
Home » ASP Home » Math Home » MetricToStandard Function
A D V E R T I S E M E N T
Title |
MetricToStandard Function |
Description |
The MetricToStandard function converts a Metric Measure into a US Standard Measure. There are three required arguments: metricmeasure, conversion and extensiontype.
arguments ============ metricmeasure the metric measure to convert into a US Standard measurement (This must be a number only)
conversion use the table below for values:
conversion argument converts: ----------------------------------------------------------------- cm-in centimeters to inches
cm-ft centimeters to feet
m-in meters to inches
m-yd meters to yards
km-mi kilometers to miles
g-oz ounces to grams
g-lbs grams to pounds
kg-oz kilograms to ounces
kg-lbs kilograms to pounds
l-pt liters to pint
l-qt liters to quarts
l-gal liters to gallons extensiontype integer that specifies the type of extension to append to the converted value:
Extensiontype argument (integer) extension --------------------------------------------------- 0 no extension (answer will be a number only)
1 append the standard abbreviation (lbs for pounds, in for inches, etc...)
2 append the word (pounds, inches, etc...)
|
Category |
ASP » Math |
Hits |
381351 |
Code |
Select and Copy the Code
|
|
|
Related Source Codes
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
New! Click here to Add your Code!
ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page | |
|