replace some floats with doubles to avoid precision errors on large input values
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-DM2K/dm2kApp/jpt/XYAxis.c new-DM2K/dm2kApp/jpt/XYAxis.c
--- old-DM2K/dm2kApp/jpt/XYAxis.c 2022-06-25 22:11:41.279009357 +0200
+++ new-DM2K/dm2kApp/jpt/XYAxis.c 2022-06-25 22:11:41.279009357 +0200
@@ -561,7 +561,7 @@
AtXYAxisWidget aw = (AtXYAxisWidget)acw;
AtAxisCorePart *ac = &aw->axiscore;
AtXYAxisPart *ax = &aw->axis;
- float nti, ti, min, max, mn, mx, sti, f;
+ double nti, ti, min, max, mn, mx, sti, f;
int c;
#if 0
@@ -644,8 +644,8 @@
AtXYAxisWidget aw = (AtXYAxisWidget)acw;
AtAxisCorePart *ac = &aw->axiscore;
AtXYAxisPart *ax = &aw->axis;
- float min, max, tmin, tmax, sti;
- float l, h, f, sh, sf;
+ double min, max, tmin, tmax, sti;
+ double l, h, f, sh, sf;
int nti, nsti;
char lbl[256];
@@ -839,8 +839,8 @@
AtAxisCorePart *ac = &aw->axiscore;
AtXYAxisPart *ax = &aw->axis;
int len = ac->vertical ? ac->y1 - ac->y2 : ac->x2 - ac->x1;
- float lmin, lmax, min, max;
- float ls, lx, lm, lv;
+ double lmin, lmax, min, max;
+ double ls, lx, lm, lv;
int nl, nst;
/* Axis min/max boundaries on full decades */
@@ -923,7 +923,7 @@
AtAxisCorePart *ac = &aw->axiscore;
AtXYAxisPart *ax = &aw->axis;
int nst = ax->subtics_per_tic;
- float lmin, lmax, min, max, lf, ld, lc, ls, lx;
+ double lmin, lmax, min, max, lf, ld, lc, ls, lx;
int nti, nsti, i;
char lbl[256];
patch c635648d6f1e71a2bac2314ff158b31f5fced7bb
Author: christoph.schroeder@helmholtz-berlin.de
Date: Fri Mar 9 17:28:17 CET 2018
* replace some floats with doubles to avoid precision errors on large input value