@helios
min and sek are integers, so min/60 and sek/3600 are integer divisions, so the result is also integer.
Simply do min/60.0, or double(min)/60.
-----------------------------------------------------------------------------------------------
Thanks! It worked when I made the divisions "double(min)/60"