数字-3999999991是否符合逻辑?

[英]does the number -3999999991 mean anything logical?


I have PHP based web app that does calculations on a series of numbers and normalizes them by substraction so that the last number in a series is always 1.

我有基于PHP的Web应用程序,它对一系列数字进行计算,并通过减法对它们进行标准化,以便系列中的最后一个数字始终为1。

the series of numbers are is turned into json strings and stored in dynamodb

将一系列数字转换为json字符串并存储在dynamodb中

Occasionally my code shows the number -3999999991 instead of a number that is supposed to be 1 or a very small positive number.

偶尔我的代码会显示数字-3999999991,而不是一个应该是1或非常小的正数的数字。

Does this number mean anything ? for example overflow or something related to a json string handling ?

这个数字是什么意思吗?例如溢出或与json字符串处理相关的东西?

1 个解决方案

#1


1  

The number specifically means nothing to me but I have seen similar when trying to store a BIGINT in an INT field in mysql. I always got the same very long number.

这个数字对我来说没有任何意义,但我在尝试将一个BIGINT存储在mysql的INT字段时看到了类似的内容。我总是得到同样很长的号码。

Does the number show up when you're watching the values at runtime or only when you look at the db afterwards? If they're only in the db maybe occasionally a value becomes too large for the field.

当您在运行时观察值或仅在您之后查看数据库时,数字是否会显示?如果他们只是在数据库中,可能偶尔会为该字段变得太大。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2012/05/24/fda2d002a0f433875c1d2c1a5dfb4c24.html



 
© 2014-2018 ITdaan.com 粤ICP备14056181号