docs icon indicating copy to clipboard operation
docs copied to clipboard

gRPC implementation of decimal for decimal.MaxValue / decimal.MinValue

Open MihailsKuzmins opened this issue 4 years ago • 1 comments

I have a question about the decimal implementation here

The provided example does not handle decimal.MaxValue or decimal.MinValue (please see a screenshot below). Is it by all right to assume that in some cases decimal overflows ulong? Or is it better to come up with something can handle big decimals? For now I can only think of storing everything as a string, but maybe there are more optimal solutions?

e.g. with decimal.MaxValue image

Any pieces of advice are welcome


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

MihailsKuzmins avatar Oct 15 '21 08:10 MihailsKuzmins

Hi @MihailsKuzmins, thanks for your query. Similar issue is discussed in #31136. Hope the comment https://github.com/dotnet/docs/issues/31136#issuecomment-1249183251 helps.

erjain avatar Sep 19 '22 08:09 erjain

The issue can be closed.

erjain avatar Sep 27 '22 18:09 erjain

Sorry for my delayed response. Thank you for the information. Hopefully in the future there is a better solution than just parsing the decimal as a string

MihailsKuzmins avatar Sep 29 '22 10:09 MihailsKuzmins