It looks like you're new here. If you want to get involved, click one of these buttons!
local division = 123.866/60
Likes: Disciple
Comments
1. How do I get an exact amount of decimal values? If I want 3 digits, how can I get 1.064 as the result?
2. How do I get only the decimal part? (0644333333333)
I'm looking through the math methods and can't quite understand them.
http://docs.giderosmobile.com/reference/lua/math
2. 123.866/60-math.floor(123.866/60)
Likes: Disciple
Fragmenter - animated loop machine and IKONOMIKON - the memory game
result = result % 1
to get the decimal part