[GRASS-dev] trouble compiling v.in.ogr + math.h (all branches)

Markus Metz markus.metz.giswork at gmail.com
Mon Jun 10 13:00:31 PDT 2013


On Mon, Jun 10, 2013 at 3:11 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> I'd suggest using:
>
>         int exp;
>         new_snap = frexp(xmax, &exp);
>         exp -= 52;
>         new_snap = ldexp(new_snap, exp);
>
> frexp() and ldexp() are C89, don't introduce rounding errors, and
> handle zero correctly (they're also likely to be more efficient, but
> that's a trivial detail).

Thanks for the suggestion, done in all branches.

Markus M


More information about the grass-dev mailing list