The original value is being preserved. It's just being formatted differently. The TextFormat parser knows that the field is a double even if it sees only "10".
On Tue, Aug 18, 2009 at 3:11 PM, ajoy <ajo...@gmail.com> wrote: > > Hi > > I'm creating a Message in Java, with a double field in it . i set it > to "10.0" > When the message is parsed using TextFormat, Java version outputs > "10.0" , but C++ outputs "10". > Is this intentional? is there a way to preserve the original values? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---