![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Floating point overflow when resizing a chart to the minimum in 64-bits | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Axis | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | gustav.kaiser |
| Priority: | --- | ||
| Version: | 20.170306 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=16390 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
|
Description
yeray alonso
2017-01-12 06:40:48 EST
Another customer suggests to fix it adding this at the end of the function TChartAxis.CalcIncrement:
if IsZero(result) then
Result := 0.00000001;
http://www.teechart.net/support/viewtopic.php?f=3&t=16512&p=73455#p73414
Other fix proposals from customers consist on modifying the MinAxisIncrement for WIN64.
- Here using 0.00000001:
MinAxisIncrement :TAxisValue = {$IFDEF TEEVALUESINGLE}
1.40129846432482e-45
{$ELSE}
{$IFDEF WIN64}
0.00000001
{$ELSE}
4.94065645841247e-324 //this IS MinDouble
{$ENDIF}
{$ENDIF}; // Epsilon 0.000000000001; { <-- "double" for BCB }
- Here using 1.40129846432482e-45:
MinAxisIncrement :TAxisValue = {$IFDEF TEEVALUESINGLE}
1.40129846432482e-45
{$ELSE}
{$IFDEF WIN64}
1.40129846432482e-45
{$ELSE}
4.94065645841247e-324 //this IS MinDouble
{$ENDIF}
{$ENDIF}; // Epsilon 0.000000000001; { <-- "double" for BCB }
|