09.10.2015, 16:35
floatround will round a value(for example: timer is on 280 seconds, it will do this 280/60=4.67, this function will round 4.67 to 4(closest integet lower than 4.67). That means there are 4 minutes in 280 seconds.)
while function - will repeat "seconds = seconds - 60" until it gets to lower than 60(lower than 1 minute) and it will show exact number of seconds in that minute.
Use this for seconds and minutes:
Add my code under CountDownTimer public.
while function - will repeat "seconds = seconds - 60" until it gets to lower than 60(lower than 1 minute) and it will show exact number of seconds in that minute.
Use this for seconds and minutes:
Code:
format(string, 128, "Minutes: %d Seconds: %d", mins, seconds);