All pastes #1134 Raw Edit

Anonymous

public text v1 · immutable
#1134 ·published 2004-09-27 11:34 UTC
rendered paste body
def get_tenths(seconds):
        seconds = string.atoi(seconds)
        (minutes, minute_remainder) = divmod(seconds,60)
        (tenths, second_remainder) = divmod(minute_remainder,6)
        if second_remainder != 0:
                tenths = tenths + 1
        return (minutes, tenths)