BIS_fnc_convertUnits

From Bohemia Interactive Community
Revision as of 19:42, 3 April 2006 by BIS fnc exportFunctionsToWiki (talk) (Generated by BIS_fnc_exportFunctionsToWiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
/*

	Description:
	Converts values to a target system of units.

	Parameter(s):
	_this select 0: source value (Scalar)
	_this select 1: source unit (Scalar)
		0: m (meters)
		1: km (kilometers)
		2: ms (meters per second)
		3: kmh (kilometers per hour)
		4: ft (feet)
		5: mi (miles)
		6: fts (feet per second)
		7: mph (miles per hour)
		8: nm (nautical miles)
		9: kts (knots)
	_this select 2: destination unit (Scalar) [optional - default: detected system of units]
	_this select 3: destination mode (Scalar) [optional - default: 0]
		0: destination value (Scalar)
		1: destination text long (String) "5 meters" e.g.
		2: destination text short (String) "5 m" e.g.
	_this select 4: destination precision factor (Scalar) [optional - default: 1 (uses rounding)]
		-1: no changes to converted value

	Returns:
	converted value (Scalar or String)
*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section