[fpc-pascal] (no subject)

Jonas Maebe jonas.maebe at elis.ugent.be
Wed May 6 22:45:15 CEST 2009


On 06 May 2009, at 22:11, Seth Grover wrote:

> Now I know I can just use trunc(DaySpan(val1, val2)) to achieve the
> same result, but I was just curious as to why this change was made
> which so drastically changes the functionality of these calls.

Because with trunc you also get rounding errors in certain cases, but  
in the other direction. I've now fixed it using a custom epsilon and  
trunc.


Jonas



More information about the fpc-pascal mailing list