On Tue, Aug 18, 2009 at 4:18 PM, ajoy <[email protected]> wrote:

> Is there any way to make it print "10.0" ?


No.
Why do you need it?


>
>
> On Aug 18, 3:34 pm, Kenton Varda <[email protected]> wrote:
> > 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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to