MIST converter

From DCS World Wiki - Hoggitworld.com
Revision as of 08:25, 13 April 2018 by Grimes (talk | contribs) (Created page with "{{Mission Scripting |fName= mist.utils.converter |vNum = Mist 4.4 |desc= Converts the specified value from the first variable into the second variable. Accepts measurements...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.utils.converter

Added with: Mist 4.4
Description
Converts the specified value from the first variable into the second variable. Accepts measurements for Speed, Distance, Pressure, and Temperature. Function is intended to offer greater flexibility for converting values between different formats.
Syntax
number mist.utils.converter(string from ,string to ,number value )
Valid Input Values:
All values are string based. Some have multiple spellings and formats available.
Speed mps, kmph, knot, knots
Distance feet, ft, nm, km, m
Pressure p, pascal, pascals, hectopascal, hpa, inhg, mmhg
Temperature kelvin, k, celsius, c, fahrenheit, f
Return value:
number
Return example:
Usage Examples:
mist.converter('f', 'c', 32)
Notes:
Function can also be called directly via mist.converter()

See Google Unit converter. [1]

Related Functions
converter, toDegree, toRadian, round, roundTbl, metersToNM, metersToFeet, NMToMeters, feetToMeters, mpsToKnots, mpsToKmph, knotsToMps, kmphToMps, kelvinToCelsius, FahrenheitToCelsius, celsiusToFahrenheit, hexToRGB

Scripting Engine

MIST Root Page