MinutesBetween very inexact
Original Reporter info from Mantis: anieden@gmx.de
-
Reporter name: Axel Niedenhoff
Original Reporter info from Mantis: anieden@gmx.de
- Reporter name: Axel Niedenhoff
Description:
For a lot of cases, MinutesBetween (DateUtils) gives a result of 0 when the exact number would be 1. I think this is due to the inherent inaccuracy of floating point operations, but I have found Round(MinuteSpan(t1, t2)) to be more exact in all cases that I have looked at. So my suggestion would be that MinutesBetween should be reimplemented in terms of Round(MinuteSpan()).
Unless of course, there is something that I am missing here (like Delphi compatibility, which I cannot check).
Mantis conversion info:
- Mantis ID: 19339
- Platform: PC (i686 32 bit)
- Version: 2.4.2