diff --git a/src/utils.cpp b/src/utils.cpp index 284a310..6060f5f 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -5,7 +5,7 @@ inline ZYM::int2048 Any2Int(const std::any &value) { return *ptr; else if (auto ptr = std::any_cast(&value)) { std::stringstream buf; - buf << std::fixed << std::setprecision(0) << *ptr; + buf << std::fixed << std::setprecision(0) << std::floor(*ptr); std::string tmp; buf >> tmp; return std::move(ZYM::int2048(tmp));