我通过 Java API (JDK 1.8) 将数据插入到 Elasticsearch 中。在java中输入数据是long数据类型,值为7153256312100466443。在Elasticsearch中输出是7153256312100467000
但是,我通过curl查询输出是7153256312100466443
最佳答案
w3schools 描述了 js 中的类似限制:
Precision Integers (numbers without a period or exponent notation) are considered accurate up to 15 digits
看起来 Chrome 开发者很尊重它。
关于java - Elasticsearch 1.6 将 19 位数字插入 Long 字段 - 最后 3 位四舍五入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36483440/