Increase float to string precision to 17

This commit is contained in:
Derek Bailey 2023-01-07 12:21:25 -08:00
parent 75af533e95
commit 06f2a3dce9
1 changed files with 1 additions and 1 deletions

View File

@ -3903,7 +3903,7 @@ bool FieldDef::Deserialize(Parser &parser, const reflection::Field *field) {
if (IsInteger(value.type.base_type)) {
value.constant = NumToString(field->default_integer());
} else if (IsFloat(value.type.base_type)) {
value.constant = FloatToString(field->default_real(), 16);
value.constant = FloatToString(field->default_real(), 17);
}
presence = FieldDef::MakeFieldPresence(field->optional(), field->required());
padding = field->padding();