finite: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dd class="note">([^}]*)<code>([^<]*)<\/code>" to "<dd class="note">$1<sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 43: | Line 43: | ||
<dd class="note"> | <dd class="note"> | ||
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: | 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: | ||
<sqf>// | <sqf>// Arma 2 | ||
hint str finite (10/0); // true ... O_o Huh???? | hint str finite (10/0); // true ... O_o Huh???? | ||
hint str (10/0); // 0 ... Weird, but that explains it. | 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/0); // true + Error Zero Divisor | ||
hint str finite 10; // true | hint str finite 10; // true |
Revision as of 19:17, 13 May 2022
Description
- Description:
- Returns true if the provided number is finite (not infinite and a valid number).
- Groups:
- Math
Syntax
Examples
- Example 1:
- finite 123; // returns true
- Example 2:
- Example 3:
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: