We have proto messages that ideally would contain a decimal as a part of the message. This proto file is being used by both a Java and a .NET client.
Since we cannot use decimal, what would the recommended approach be for passing these values?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How many significant digits?
If you know ahead of time, you could use a fixed-point representation, e.g. an integer which is treated as units of 10-6 or whatever is most appropriate.
If not, well, there’s string…