[Lazarus] Floating point comparison with ulps precision
Alexander Klenin
klenin at gmail.com
Tue Aug 14 11:21:31 CEST 2012
On Tue, Aug 14, 2012 at 8:00 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
>> However, since it depends on floating point and integer
>> representation, it might cause problems
>> for users on non-Intel platforms (does somebody use TAChart on ARM?),
>> so perhaps some kind of IFDEF is in order.
>
> Yes, we do (arm-wince).
Nice. I am curious -- in what project? Does it work good?
>In how far would I notice this change?
The bug which was fixed is reproduced as follows:
1) Create TChart
2) Set BottomAxis.Intervals.Options=[aipUseCount], Margins.Left=0,
Margins.Right=0.
3) Try zooming around the chart. Before r38232, leftmost and rightmost
marks would often disappear,
after the should be always visible.
My concern is with integer and FP representation.
IIUC, there are both big-endian and little-endian ARM versions?
Are Double values always in IEEE754 format?
--
Alexander S. Klenin
More information about the Lazarus
mailing list