Re: [R] exactly representable numbers

From: Marc Halbrügge <marc.halbruegge_at_gmx.de>
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

Greetings
Marc



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.