Paul Evans wrote:
How can I get R to change the default precision value? For example:
x=0.99999999999999999
1-x
[1] 0

Is there a way that I can get a non-zero value using some parameter, or some 
package?
many thanks.

The 'gmp' package allows calculation with arbitrary precision rationals (and every finite-digit decimal is a rational).

See a recent post of mine, listing some gmp examples:
http://tolstoy.newcastle.edu.au/R/e9/help/10/01/0579.html

______________________________________________
R-help@r-project.org 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.

Reply via email to