{"name":"floor","operator":null,"title":"floor","type":"command","url":"https://community.bistudio.com/wiki/floor","revid":369333,"updated":"2024-09-03T18:43:00Z","groups":["Math"],"status":"ok","replaced_by":[],"games":[{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma1","name":"Armed Assault","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the next **lowest** integer in relation to the provided number.","syntaxes":[{"syntax":"floor num","since":null,"effect":null,"exec":null,"params":[{"name":"num","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"num: Number"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"unary","operator":null,"left":null,"right":{"text":"num","types":["Number"]}}],"examples":[{"text":"```sqf\nfloor 5.1;        // result is  5\nfloor 5.999;    // result is  5\nfloor -2.01;    // result is -3\nfloor -2.99;    // result is -3\n```","code":["floor 5.1;\t\t// result is  5\nfloor 5.999;\t// result is  5\nfloor -2.01;\t// result is -3\nfloor -2.99;\t// result is -3"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ceil","round","linearConversion"],"notes":[],"categories":["ArmA: Armed Assault: New Scripting Commands","ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Math","Introduced with Armed Assault version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}