LispInt InternalAsciiToInt(const LispString& aString) { const LispChar* ptr = aString.c_str(); if (!IsNumber(ptr, false)) throw LispErrInvalidArg(); return std::stoi(aString); }
double BigNumber::Double() const { LispString str; ANumber num(*iNumber); ANumberToString(str, num, 10); std::istringstream is(str.c_str()); double d; is >> d; return d; }