{"name":"abs","title":"abs","type":"command","url":"https://community.bistudio.com/wiki/abs","revid":311169,"updated":"2022-05-12T09:59:18Z","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 absolute (positive) value of a real number.","syntaxes":[{"syntax":"abs x","params":[{"name":"x","type":"Number","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"x"}}],"examples":[{"code":["_n = abs -3; // Returns 3"]}],"see_also":["+","-"]}