value: fix use of parseFloat

This commit is contained in:
torque 2023-11-23 17:52:30 -08:00
parent 33ab092a06
commit 39619e7d6b
Signed by: torque
SSH Key Fingerprint: SHA256:nCrXefBNo6EbjNSQhv0nXmEg/VuNq3sMF5b8zETw3Tk

View File

@ -106,7 +106,7 @@ pub const Value = union(enum) {
switch (self) {
inline .scalar, .string => |str, tag| {
if (tag == .string and !options.coerce_strings) return error.BadValue;
return try std.fmt.parseFloat(T, str, 0);
return try std.fmt.parseFloat(T, str);
},
else => return error.BadValue,
}