Hi i’m using LÖVE2D with the Zerobrane Studio IDE. I’ve managed to get the first two answers which you can see down below:
{
number = 6.283
print(math.floor(number))
print(math.ceil(number))
Output:
6
7
}
But i don’t know how to do the last two exercises and i can’t find any helpful information on the net. Does anybody know how to round to 1 and 2 decimal places in Lua?