阅读背景:

在proto3中将小数作为字符串存储有什么缺点?

来源:互联网 

I am using Googles protocol buffer library within my persistent storage system and want to persist currency values, but I am not sure that the floating point types provided by photo (float/double) are good enough. Are there any downsides to storing all of my currency values as strings (e.g. storing "0.10" instead of 0.1), then using the Convert.ToDecimal function when I retrieve my data and need to do arithmetic?I am using Googles protocol buffer library with




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: