Serialize float options using the hexadecimal format
This ensures no information is lost when the value is round-tripped.
This commit is contained in:
@@ -507,7 +507,7 @@ fn addUserInputOptionFromArg(
|
||||
.comptime_float, .float => return if (maybe_value) |v| {
|
||||
map.put(field.name, .{
|
||||
.name = field.name,
|
||||
.value = .{ .scalar = std.fmt.allocPrint(arena, "{e}", .{v}) catch @panic("OOM") },
|
||||
.value = .{ .scalar = std.fmt.allocPrint(arena, "{x}", .{v}) catch @panic("OOM") },
|
||||
.used = false,
|
||||
}) catch @panic("OOM");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user