Hacker News new | ask | show | jobs
by nelsondev 530 days ago
Perhaps we could retitle the link, as it stands a bit click-baity.

Perhaps, average error of clocks is 30 seconds higher because minutes use .floor() nor .round()

3 comments

The whole post feels like nonsense.
It is. It's just taking something obvious and recontextualizing in language that sounds like a Mysterious Conspiracy when it's really just a banal truth we all take for granted because all the other options make less sense. Like using tau over pi in geometry.
This hall monitor mentality in every comments section is more annoying than titles ever are.
I like to think of it as TRUNC
For positive numbers, both the FLOOR() and TRUNC() functions return the same values
And for negative numbers it's CEIL()!

And in SQL Server, ROUND() with a nonzero number for the third parameter for truncate, and CELING() for ceiling.