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 <> 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
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to