{"name":"a / b","operator":"/","title":"a / b","type":"command","url":"https://community.bistudio.com/wiki/a_/_b","revid":363979,"updated":"2024-04-29T22:53:36Z","groups":["Math","Config"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"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":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the quotient of two numbers. If the divisor is 0 a *Division by zero* error is shown but the script does not stop and the result of such division is assumed to be 0.\n\nAlternative syntax returns the Config entry with the given name (alias for >>, slightly slower but with higher precedence).","syntaxes":[{"syntax":"a / b","since":null,"effect":null,"exec":null,"params":[{"name":"a","type":"Number","optional":false,"default":null,"description":"dividend","types":["Number"],"since":null,"text":"a: Number - dividend"},{"name":"b","type":"Number","optional":false,"default":null,"description":"divisor","types":["Number"],"since":null,"text":"b: Number - divisor"}],"returns":{"type":"Number","types":["Number"],"description":"quotient","text":"Number - quotient"},"form":"binary","operator":"/","left":{"text":"a","types":["Number"]},"right":{"text":"b","types":["Number"]}},{"syntax":"config / name","since":"arma1 1.00","effect":null,"exec":null,"params":[{"name":"config","type":"Config","optional":false,"default":null,"description":null,"types":["Config"],"since":null,"text":"config: Config"},{"name":"name","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"name: String"}],"returns":null,"form":"binary","operator":"/","left":{"text":"config","types":["Config"]},"right":{"text":"name","types":["String"]}},{"syntax":"","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Config","types":["Config"],"description":"config entry","text":"Config - config entry"},"form":null,"operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\n_result = 15 / 3; // result is 5\n```","code":["_result = 15 / 3; // result is 5"]},{"text":"```sqf\n_cfgVehicles = configFile / \"CfgVehicles\"; // identical to configFile >> \"CfgVehicles\" (but the order of precedence)\n```","code":["_cfgVehicles = configFile / \"CfgVehicles\"; // identical to configFile >> \"CfgVehicles\" (but the order of precedence)"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Operators","configFile","missionConfigFile","campaignConfigFile","configName","config greater greater name","count"],"notes":[{"user":"ffur2007slx2_5","date":"2014-04-01T00:02:00Z","text":"(Arma 3 1.14) config / name can be composed to config >> name String or Array format via BIS_fnc_configPath. E.g.\n\n```sqf\n[configFile / \"ATMineCrater\" / \"MissileCircleDust\", \"\"] call BIS_fnc_configPath; // return: \"configfile >> \"ATMineCrater\" >> \"MissileCircleDust\"\"\n[configFile / \"ATMineCrater\" / \"MissileCircleDust\", []] call BIS_fnc_configPath; // return: [\"configfile\",\"ATMineCrater\",\"MissileCircleDust\"]\n```"}],"categories":[]}