[fpc-pascal] math round vs banker's round

Michael Schnell mschnell at lumino.de
Wed Aug 14 10:51:32 CEST 2013


On 08/14/2013 10:42 AM, Vincent Snijders wrote:
>
> For any digit x, it still can be represented exactly in binary 
> representation ...
>
Nope,
As the bit count of the mantissa is limited to - say - n , with  x > 
2**(n-1) you will not have an exact representation of x.5.

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130814/280f54b0/attachment.html>


More information about the fpc-pascal mailing list