Use deca::num in Parser.hpp

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-04-17 18:15:16 +02:00
parent 3c4dc0ea28
commit e32b2172e5
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ namespace Parser {
i += 2; i += 2;
const string& right = lexed[i].toktext; const string& right = lexed[i].toktext;
p = min(static_cast<int>(right.size()), numeric_limits<long double>::digits10); p = min(static_cast<int>(right.size()), numeric_limits<long double>::digits10);
v += copysign(stold(right.substr(0, p)) / powl(10, p), v); v += copysign(stold(right.substr(0, p)) / powl(deca::num, p), v);
} }
parseTree << types::Integer(v, p); parseTree << types::Integer(v, p);
break; break;