From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Returns true if the provided number is finite (not infinite and a valid number).
- Groups:
- Math
Syntax
- Syntax:
- finite number
- Parameters:
- number: Number
- Return Value:
- Boolean
Examples
- Example 1:
finite 123;
- Example 2:
finite log -1;
- Example 3:
if (not finite log -1) then { hint "Infinite" };
Additional Information
- See also:
- a / b
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
-
- Posted on 27 Sep, 2013
- Killzone_Kid
-
Don't get high hopes with this command thinking what a great way of catching divisions by zero, the command is pretty useless in this respect:
hint str finite (10/0);
hint str (10/0);
hint str finite (10/0);
hint str finite 10;
hint str finite 1000000000000000000000000000000000000000;