Increase float to string precision to 17
This commit is contained in:
parent
75af533e95
commit
06f2a3dce9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue