[英]Int turning into negative number
我正在尝试制作一个需要存储大量数字的游戏。 我目前使用的是 int 但数字一直变成负数。 有没有原因会发生这种情况?
这可能是因为您的值超出了int可以存储的范围。 尝试使用long变量而不是int
int
long
[英]Negative int color value
[英]Getting int from Edit text and turning it to a string
[英]EditText with negative number and TextWatcher
[英]Why is my calculated percentage turning negative in Android SDK?
[英]How to handle negative int with Java ByteBuffer
[英]System.currentTimeMillis() to int returns negative value
[英]Android Edittext insert negative number
[英]negative number within RTL AlertDialog
[英]Android emulator : insert negative number?
[英]Sum is giving a negative number in Kotlin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.