Introduction
Functions
Misc
Introduction/functions-mx-float
Min/Max Function
Introduced in version 1.0
Min/Max Float function allows you to clamp a float value between two values.
Example:
var_define->input = 250
var_define->output = 0
vstock->fmx(input, -180, 180, output)
gm_stock->console_log(output)
Example above clamps "Input" variable between -180 and 180 and returns
the output to "Output" variable then prints out the "Output" variable.