We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c09b76 commit 32524a9Copy full SHA for 32524a9
src/internal/reader_common.h
@@ -15,7 +15,7 @@ Value LIBSCRATCHCPP_EXPORT jsonToValue(nlohmann::json value)
15
if (value.is_string())
16
return value.get<std::string>();
17
else if (value.is_number())
18
- return std::stof(value.dump());
+ return std::stod(value.dump());
19
else if (value.is_boolean())
20
return value.get<bool>();
21
else
0 commit comments