[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ... Rounding address@hidden
- Subject: Re: ... Rounding address@hidden
- Date: Tue, 22 Oct 1996 11:35:33 -0600
> 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