naRef naStr_fromnum(naRef dest, double num) { struct naStr* dst = PTR(dest).str; unsigned char buf[DIGITS+8]; setlen(dst, fromnum(num, buf)); memcpy(DATA(dst), buf, LEN(dst)); return dest; }
naRef naStr_fromnum(naRef dest, double num) { struct naStr* dst = dest.ref.ptr.str; unsigned char buf[DIGITS+8]; setlen(dst, fromnum(num, buf)); memcpy(dst->data, buf, dst->len); return dest; }