Skip to content

Commit 008b96a

Browse files
committed
Value: Use stod() to convert string to double
1 parent 5580f7f commit 008b96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scratch/value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ double Value::stringToDouble(const std::string &s, bool *ok)
160160
try {
161161
if (ok)
162162
*ok = true;
163-
return std::stof(s);
163+
return std::stod(s);
164164
} catch (...) {
165165
return 0;
166166
}

0 commit comments

Comments
 (0)