diff --git a/include/chaiscript/dispatchkit/boxed_number.hpp b/include/chaiscript/dispatchkit/boxed_number.hpp index e1503da..b65d5e3 100644 --- a/include/chaiscript/dispatchkit/boxed_number.hpp +++ b/include/chaiscript/dispatchkit/boxed_number.hpp @@ -523,11 +523,11 @@ namespace chaiscript case Common_Types::t_int64: return std::to_string(get_as()); case Common_Types::t_double: - return std::to_string(get_as()); + return to_string_aux(bv); case Common_Types::t_float: - return std::to_string(get_as()); + return to_string_aux(bv); case Common_Types::t_long_double: - return std::to_string(get_as()); + return to_string_aux(bv); } throw chaiscript::detail::exception::bad_any_cast();