Displaying 1 result from an estimated 1 matches for "stringfromcomplex".
2009 May 23
2
as.numeric(levels(factor(x))) may be a decreasing sequence
...l(double x, int *warn)
{
int w, d, e;
formatReal(&x, 1, &w, &d, &e, 0);
if (ISNA(x)) return NA_STRING;
- else return mkChar(EncodeReal(x, w, d, e, OutDec));
+ else return mkChar(elim_trailing(EncodeReal(x, w, d, e, OutDec), OutDec));
}
SEXP attribute_hidden StringFromComplex(Rcomplex x, int *warn)