> 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.