Jump to content

Talk:Averages/Mean time of day: Difference between revisions

→‎TCL and rounding: Rounding fun!
(→‎TCL and rounding: Things are very strange, but I'm not sure that they're wrong yet)
(→‎TCL and rounding: Rounding fun!)
Line 22:
return '%02i:%02i:%02i' % (h, m, s)</lang>
--[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 05:57, 2 July 2013 (UTC)
: Was a rounding issue; <tt>int()</tt> rounds to zero whereas <tt>round()</tt> rounds to nearest. –[[User:Dkf|Donal Fellows]] ([[User talk:Dkf|talk]]) 13:05, 28 August 2013 (UTC)
 
I'm not convinced that thewhole averaging usedmethodology is wrongcorrect in the first place. For example, when I try an alternative mechanism for time averaging (with times being either “pre” or “post” midnight so as to minimise the deltas):
<lang tcl>% set t [clock scan 23:00:17 -base 0]
79217
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.