Value overflow in TChartAxis.CalcIncrement
Posted: Tue Sep 02, 2008 8:56 am
Hello,
I have a problem with a new portion of code in TeEngine.pas : TChartAxis.CalcIncrement().
We have very high values, like 1e24, and if you make :
increment * iminimum
i.e. 1e20 * 1e24 => the Double range is overflowed
For the moment, we removed this calculation and put back the old version we had and which works :
What about using Extended, would it be possible ?
I have a problem with a new portion of code in TeEngine.pas : TChartAxis.CalcIncrement().
Code: Select all
tmpMin:=Increment*Round(IMinimum);
increment * iminimum
i.e. 1e20 * 1e24 => the Double range is overflowed
For the moment, we removed this calculation and put back the old version we had and which works :
Code: Select all
tmpMid:=(IMinimum+IMaximum)*0.5;
What about using Extended, would it be possible ?