我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Cloud Datastore中使用base10值

Cloud Datastore does not support Decimal values, only floats, so how do I save and load base10 values like 1.23 ?

I have thought about storing as Int and saving 1.23 as 123, which would work I suppose, with some simple math to move the dot, but is that really the way to go? It seems tedious to be doing this kind of conversion all the time, just to save and load the exact base10 value.

Am I missing something?

近期文章

  • C帮助-将mpz转换为无符号字符数组
  • aws-sdk-go s3在存储桶之间移动目录
  • 如何完成向USB设备发送命令?
  • 带有julienschmidtrouter和基准的pprof配置文件未分析处理程序
  • CQLC:去Cassandra查询返回页面标记以获取边界限制吗?
  • 使用Visual Studio Code使用GDB进行调试
  • 具有前台流程的CLI的架构选择
  • 当没有支持它的类型时,如何在Go中处理精确的十进制值
  • 可以将JVM配置为不使用USRSIG1吗?
  • 在Golang中模拟函数,而无需使用函数类型或将模拟函数作为参数传递
  • LastModified标头未出现
  • 操作Kubernetes的客户端PodList
  • 带有Android App的Golang后端
  • 如何在Go中使用含糊的JSON序列化结构?
  • 如何从Go语言代码运行Maven构建
  • 无法在Raspberry Pi上运行elasticsearch图像
  • 用于scan.Scan()数字迭代器
  • Golang请求中间件库?
  • 去安装-Win10上的行为不同于osx或linux
  • 用于Golang应用程序的Elastic beanstalk Nigix配置

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华