Re: [R] exactly representable numbers

From: Marc Halbrügge <>
Date: Mon 11 Sep 2006 - 15:31:22 GMT

> thanks for this. Wouldn't it be a good idea to have some function
> that returns "the smallest exactly representable number strictly
> greater than x"?
> Or does this exist already?
I didn't read the whole thread, but yes, this exists. It's in the standard c library, header "math.h" and called "nextafter"

Shouldn't be too hard to get it into R

Marc mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue Sep 12 01:51:57 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 11 Sep 2006 - 16:30:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.