[fpc-devel] rounding precision error with integer and floating point division
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri Nov 18 12:37:18 CET 2011
On 18 Nov 2011, at 12:20, Graeme Geldenhuys wrote:
> On 2011-11-18 13:04, Jonas Maebe wrote:
>>
>> http://wiki.freepascal.org/
>> User_Changes_2.2.0#Floating_point_constants
>
> The description of the "new behaviour" should change then. The part
> that
> says "...which doesn't cause data loss" is now false, given Seth's
> example.
It says that the floating point *constant* (in Seth's example: 24.0)
is converted to the lowest precision that does not cause data loss. It
does not say that the resulting calculation will have the same
precision as before. In fact, the "effect" part says exactly the
opposite.
Jonas
More information about the fpc-devel
mailing list