BIS_fnc_nearestNum
Jump to navigation
Jump to search
Description
- Description:
- Returns the provided set closest number to the target number.
- Execution:
- call
- Groups:
- ArraysMath
Syntax
- Syntax:
- [values, value] call BIS_fnc_nearestNum
- Parameters:
- values: Array of Numbers - values to choose from
- value: Number - the reference value
- Return Value:
- Number - the closest value
Examples
- Example 1:
Additional Information
- See also:
- BIS fnc randomNum random
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