BIS fnc convertUnits: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (1 revision)
(No difference)

Revision as of 15:03, 25 July 2014


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