BIS fnc convertUnits: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Tag: Undo |
||
Line 44: | Line 44: | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:convertUnits}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:convertUnits}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:convertUnits}}]] |
Revision as of 15:42, 2 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Math
Syntax
- Syntax:
- Syntax needed
- Parameters:
- value: Number - source value
- from: Number - source unit. Can be one of:
- 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)
- to: Number - (Optional, default detected system of units via systemOfUnits) destination unit. See from.
- mode: Number - (Optional, default 0) can be one of:
- 0: destination value (Scalar)
- 1: destination text long (String) e.g "5 meters"
- 2: destination text short (String) e.g "5 m"
- precision: Number - (Optional, default 1) destination precision factor, -1 for no precision change. cannot be 0
- Return Value:
- Return value needed
Examples
- Example 1:
_distString = [500, 0, 5, 1, -1] call BIS_fnc_convertUnits;
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