clock simulation has bugs
I've downloaded this code:
And I wanted to make some changes (see attachment)
I put an input for "hours", and it correctly sets the hour hand. But also need to set the minutes hand. I took the hours hand code and multiplied it by 60... I don't get what I am doing wrong, but it is only working for SOME minutes, not all. 1,25 h sets correctly 1:15, 1,5 h sets correctly 1:30... but when I tried other decimals it kind of not recognize them and graphs something else. I want to show my students that 0,30 hs is NOT 30 minutes, and that's not working with this file.