示例#1
0
LispInt InternalAsciiToInt(const LispString& aString)
{
    const LispChar* ptr = aString.c_str();

    if (!IsNumber(ptr, false))
        throw LispErrInvalidArg();

    return std::stoi(aString);
}
示例#2
0
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;
}