|
Home » ASP Home » Math Home » StandardToMetric Function
A D V E R T I S E M E N T
Title |
StandardToMetric Function |
Description |
The StandardToMetric function converts a US Standard Measure into a Metric Measure. There are three required arguments: standardmeasure, conversion and extensiontype.
arguments ============ Standardmeasure the US Standard measure to convert (This must be a number only)
Conversion use the table below for values:
conversion argument converts: -------------------------------------------------------------------------- in-cm inches to centimeters
ft-cm feet to centimeters
in-m inches to meters
yd-m yards to meters
mi-km miles to kilometers
oz-g ounces to grams
lbs-g pounds to grams
oz-kg ounces to kilogram
lbs-kg pounds to kilograms pt-l pints to liters
qt-l quarts to liters
gal-l gallons to liters
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 (g for grams, kg for kilograms, etc...)
2 append the word (grams, kilograms) |
Category |
ASP » Math |
Hits |
381944 |
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 | |
|