Subject Re: Rounding problems
Author mmenaz
For Extended (Pascal) data type you can use the IBO function
'RoundNear' that you find in the uRounding.pas unit.
Regards
Marco Menardi

--- In IBObjects@y..., "Pirtea Calin" <pcalin@r...> wrote:
> I've encountered a rounding problem with int64 numerics
> using Delphi5 Pro and IBO4.2.Hc. When rounding 10.5 it results
> 10 witch is not ok for my client.
>
> I've looked up the round definition from delphi help and
> "If X is exactly halfway between two whole numbers,
> the result is always the even number."
> That is not acceptable. When X is exactly halfway
> between two whole numbers, the result my client wants is always
> the greater number.