Please see R FAQ 7.31 and there reference therein -- you are at the "epsilon" precision limit here.
Rcpp uses the same double
type as R and every other C-based program. There is also long double
, but what you may really want is an arbitrary / multiple precision library such as GNU mpfr which also has an R package Rmpfr.