MarketScript > Functions > Converting |
uc (expr, unit [, factor])
Stream of data to be unit converted.
Units to be converted to.
values:
bbl – Barrels
gal – Gallons
ltr – Liters
mt – Metric Tons
st – Short Tons
gj – Gigajoules
mmb - MMBTUs
thm - Therms
gwh - Gigawatt Hours
mwh - Megawatt Hours
kwh - Kilowatt Hours
kltr - Kiloliters
mscf - Thou/Std Cubic Ft.
lb - Pounds
grm - Grams
toz - Troy Ounces
cm - Cubic Meters
required.
User supplied conversion factor.
value: rational number
optional.
uc("/GCL[0]", LTR)
cc (expr, currency [, source])
Stream of data to be currency converted.
Currency code for currency to be converted to.
values: standard three letter currency codes.
required.
Currency conversion source to be used.
optional.
cc("/GCL[0]", EUR)
cc("/GCL[0]", EUR, USF)
cc(uc("/GCL[0]" , MT), EUR)