Pixel-Composer/scripts/lcd_function/lcd_function.gml

12 lines
171 B
Text
Raw Normal View History

2023-03-19 09:17:39 +01:00
function gcd(num1, num2) {
var a = abs(num1);
var b = abs(num2);
while (b != 0) {
var temp = b;
b = a % b;
a = temp;
}
return a;
}