In the Reference:
touch.id
id int, a unique identifier for this touch
But in my code, when I print touch.id, I got a float like 420594672.0
which one is correct ?
In the Reference:
touch.id
id int, a unique identifier for this touch
But in my code, when I print touch.id, I got a float like 420594672.0
which one is correct ?
They’re both correct. The ID is an int, but when you print it, the print routine shows it with the .0 .
PS There’s an integer division //. This example shows the result.
function setup()
print(10/2)
print(10//2)
end