[fpc-pascal] <time_fraction>Between bug?
Bee Jay
bee.ography at gmail.com
Sun May 30 14:23:44 CEST 2010
On 30 Mei 2010, at 19:18, Marco van de Voort wrote:
> IIRC this is normal and delphi compatible and due to TDatetime being a
> floating point type.
No, it's not Delphi compatible. Delphi's result is alot worst, at least on Delphi 7. And I didn't ask to make it truly compatible with Delphi. ;)
> *between does a trunc, and
> "time" is a floating point values, so values might be rounded here and
> there.
What if an app need a precise and correct result, say a rocket launcher? :D Is there other alternative solution?
> Sometimes the rounding means that e.g. date+1second is rounded to a bit more
> than date + 1second. Then later secondsbetween sees no whole second between
> and this results in this behaviour.
What about other languages result? C or PHP, for example.
-Bee-
More information about the fpc-pascal
mailing list