{"name":"sqrt","title":"sqrt","type":"command","url":"https://community.bistudio.com/wiki/sqrt","revid":379394,"updated":"2026-10-31T00:00:40Z","groups":["Math"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","description":"Returns square root of x.","syntaxes":[{"syntax":"sqrt x","params":[{"name":"x","type":"Number","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"x"}}],"examples":[{"code":["private _squareRoot = sqrt 9;  // returns 3"]}],"see_also":["Math Commands","a %5E b"],"notes":[{"user":"Benargee","date":"2014-08-24T23:05:00Z","text":"Alternatively use \"x^0.5\" or \"x^(1/2)\".\n\n```sqf\n_sq = 9^0.5;    // result is 3\n_sq = 9^(1/2);    // result is 3\n```\n\nYou can use this method to get any root.\nCubed root = x^(1/3) or x^0.333[repeating].\nRoot 4 = x^(1/4) or x^0.25."}]}