2016-09-09 7 views
-3

könnte etwas Hilfe gebrauchen, da ich nicht wirklich sehen, wohin ich gehe falsch:Neuling Python Modulo unerwartetes Ergebnis

totalseconds/86400

1.2494560185185186

totalseconds%86400

21553

Soll ich nicht 24945 ... bekommen?

Danke für jede Hilfe!

+0

Was ist 'totalseconds'? – Li357

+0

totalseconds = 107953 – UTSloth

+0

'21553' +' 86400' = '107953', also ist der Modulo korrekt. –

Antwort

0

Modulo ist der Rest nach der Division, nicht der Bruchteil der Dezimalzahl.