MathIntegerClamp
native MathIntegerClamp takes [[[integer|integer.html]]] value, [[[integer|integer.html]]] min, integer max returns [[[integer|integer.html]]]
Возвращает число в диапазоне между min и max.
function [[[main|main.html]]] takes [[[nothing|nothing.html]]] returns [[[nothing|nothing.html]]]
    call ConsolePrint([[[I2S|i2s.html]]](MathIntegerClamp(-3, -1, 1))) // -1
    call ConsolePrint([[[I2S|i2s.html]]](MathIntegerClamp(-2, -3, 2))) // -2
    call ConsolePrint([[[I2S|i2s.html]]](MathIntegerClamp(5, -1, 3)))  // 3
endfunction
Last modified: 09 January 2025