{"name":"finite","title":"finite","type":"command","url":"https://community.bistudio.com/wiki/finite","revid":379419,"updated":"2026-10-31T00:04:01Z","groups":["Math"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Returns true if the provided number is finite (not infinite and a valid number).\n\n> [!NOTE]\n> - Maximum finite Number : 3.40282e+38\n> - Minimum finite Number : -3.40282e+38","syntaxes":[{"syntax":"finite number","params":[{"name":"number","type":"Number","type_expr":"Number"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"unary","right":{"text":"number"}}],"examples":[{"code":["finite 123; // returns true"]},{"code":["finite log -1; // returns false"]},{"code":["if (not finite log -1) then { hint \"Infinite\" };"]}],"see_also":["a / b"],"notes":[{"user":"Killzone_Kid","date":"2013-09-27T00:00:00Z","text":"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:\n\n```sqf\n// Arma 2\nhint str finite (10/0);    // true ... O_o Huh????\nhint str (10/0);        // 0 ... Weird, but that explains it.\n\n// Arma 3\nhint str finite (10/0);    // true + Error Zero Divisor\nhint str finite 10;        // true\nhint str finite 1000000000000000000000000000000000000000; // false\n```"}]}