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

Content added Content deleted
(→‎TCL and rounding: Things are very strange, but I'm not sure that they're wrong yet)
(→‎TCL and rounding: Rounding fun!)
Line 22: Line 22:
return '%02i:%02i:%02i' % (h, m, s)</lang>
return '%02i:%02i:%02i' % (h, m, s)</lang>
--[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 05:57, 2 July 2013 (UTC)
--[[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 the averaging used is wrong. 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):
I'm not convinced that whole methodology is correct 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]
<lang tcl>% set t [clock scan 23:00:17 -base 0]
79217
79217