I need to choose a data type to represent absolute time values for static typed language. I need a small time resolution and big time span coverage.
A natural choice is to use nanoseconds time ticks since some epoch. 64bit integer would then be fine. But we then get accuracy problems to represent time in seconds and rounding errors.
A fixed point value with seconds as time unit and decimal point between bit 29 and 30 might match most users precision preference. But it is not trivial to get fixed point computation correct because of the tricky problem of normalization and rounding errors.
Thus using double precision floats seems a good choice because all operations are built in computers. It is only the precision that is not uniform.
Do the hackers following YCombinator hackers news have an opinion to share on this ?