You would have to manually convert it to/from a string.  Or, for more
efficiency, you could convert to a byte array (each byte being a base-256
digit) or perhaps a packed repeated fixed64.  The protobuf library doesn't
provide any helpers for this but they should not be too hard to write.

On Tue, Mar 9, 2010 at 11:38 AM, JY <jy2...@gmail.com> wrote:

> In our java project, we always use the BigDecimal type, I wonder
> whether it is possible to have BigDecimal in generated java code? I
> see the language guide has "double" type, guess that will make the
> field double in java class.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@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.

Reply via email to