On Mon, Jun 10, 2013 at 3:11 PM, Glynn Clements
<gl...@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
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to