{"name":"BIS_fnc_linearConversion","title":"BIS fnc linearConversion","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_linearConversion","revid":341218,"updated":"2023-05-13T23:07:03Z","groups":["Math"],"status":"deprecated","replaced_by":["linearConversion"],"games":{"arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.50","arma3_since":"0.50","description":"Linear conversion of a value from one set to another\n\n> [!NOTE]\n> This function became obsolete with the introduction of linearConversion.","syntaxes":[{"syntax":"[[minFrom, maxFrom], value, [minTo, maxTo]] call BIS_fnc_linearConversion","params":[{"name":"minFrom","type":"Number","type_expr":"Number"},{"name":"maxFrom","type":"Number","type_expr":"Number"},{"name":"value","type":"Number","type_expr":"Number"},{"name":"minTo","type":"Number","type_expr":"Number"},{"name":"maxTo","type":"Number","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number","description":"value adapted to [minTo, maxTo] range","text":"Number *value* adapted to [*minTo*, *maxTo*] range"}}],"examples":[{"code":["[[-50, 50], -50, [0, 1]] call BIS_fnc_linearConversion; // returns 0\n[[-50, 50],   0, [0, 1]] call BIS_fnc_linearConversion; // returns 0.5\n[[-50, 50], +50, [0, 1]] call BIS_fnc_linearConversion; // returns 1"]}],"see_also":["linearConversion"]}