9951 explained code solutions for 126 technologies


luaConvert float to int


y = math.floor(x)ctrl + c
y

will contain resulting integer

x

float value

math.floor

will return largest integer that is small than given float number