finite: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[true|True]], if number is finite (not infinite and a valid number) |= | | [[true|True]], if number is finite (not infinite and a valid number) |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Boolean]] <nowiki>=</nowiki> '''finite''' x |= | | [[Boolean]] <nowiki>=</nowiki> '''finite''' x |SYNTAX= | ||
|p1= x: [[Number]] |= | |p1= x: [[Number]] |PARAMETER1= | ||
| [[Boolean]] |= | | [[Boolean]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre>finite 10/0 .... result is false</pre> |= | |x1= <pre>finite 10/0 .... result is false</pre> |EXAMPLE1= | ||
|x1= <pre>?!finite 10/0 : hint "Infinite"</pre> |= | |x1= <pre>?!finite 10/0 : hint "Infinite"</pre> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= | | |SEEALSO= | ||
}} | }} |
Revision as of 14:39, 7 April 2019
Description
- Description:
- True, if number is finite (not infinite and a valid number)
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
?!finite 10/0 : 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); // Error Zero Divisor hint str finite 10; //true hint str finite 1000000000000000000000000000000000000000; //false