finite: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
Killzone Kid (talk | contribs) (max and min) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns [[true]] if the provided number is finite (not infinite and a valid number). |DESCRIPTION= | | Returns [[true]] if the provided number is finite (not infinite and a valid number). | ||
{{ Informative | | |||
* Maximum finite [[Number]] : 3.40282e+38 | |||
* Minimum finite [[Number]] : -3.40282e+38 }}|DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 19:47, 10 April 2020
Description
- Description:
- Returns true if the provided number is finite (not infinite and a valid number).
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
finite 123; // returns true
- Example 2:
finite log -1; // returns false
- Example 3:
if (not finite log -1) then { hint "Infinite" };
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
- 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:
// Arma 2 hint str finite (10/0); // true ... O_o Huh???? hint str (10/0); // 0 ... Weird, but that explains it. // Arma 3 hint str finite (10/0); // true + Error Zero Divisor hint str finite 10; // true hint str finite 1000000000000000000000000000000000000000; // false