[fpc-pascal] Re: Possible bug in return value of MonthsBetween function in unit dateutils
Marco van de Voort
marcov at stack.nl
Thu Dec 10 13:27:29 CET 2009
In our previous episode, Henry Vermaak said:
> 2009/12/10 Funky Beast <funkybeast at pacific.net.sg>:
> >
> > I did read that, but I'm just wondering isn't 9.98767967 more approximate to 10 than 9?
>
> How do you round a month? It makes sense that the function only gives
> full months, imo. Either way, I think this is d?lphi compatible and
> at least documented.
Yes. Keep in mind that you wouldn't want 16 days difference being rounded up
to a full month.
More information about the fpc-pascal
mailing list