[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ... Rounding address@hidden



> Now another netcdf-3 matter.  Conversions from float/double to other types
> currently truncate rather than round.  I favour rounding.  If you decide
> against this you should make it clear in the User's Guide that it is the
> user's responsibility to round (if required).

The interface for setting it doesn't seem to be standardized.
See 'man ieee_flags' on a SunOS 5. On SGI's, the interface
is fpsetround(), fpgetround(), in <ieeefp.h>.

The user's guide should probably mention that the netcdf library doesn't
mess with whatever rounding is in scope.

-glenn