当前位置:
代码迷
>>
C#
>> Int32普普通通除法,减法运算出错
详细解决方案
Int32普普通通除法,减法运算出错
热度:
414
发布时间:
2016-04-28 08:36:08.0
Int32普通除法,减法运算出错
本帖最后由 wangfan027 于 2015-11-05 17:45:06 编辑
VS2015
wd_temp.force = (Int32)temp;
执行完后还能看到结果是对的
wd_temp.force /= 200;
wd_temp.force -= 416;
这两部无法单步执行,一单步就没法DEBUG了
后面设断点的话能看到wd_temp.force变成-1了。
------解决思路----------------------
83117 / 200 = 415
415 - 416 = -1
有什么问题?
相关解决方案
出现Operator '==' incompatible with operand types 'Int32' and 'Object'该怎么处理
OleDbParameterCollection 只接受非空的 OleDbParameter 类型对象,不接受 Int32 对象。该如何处理
字节太多,应为 7 位编码的 Int32。这个异常会是什么原因引起的
将参数值从 String 变换到 Int32 失败?
System.Int32”对象转换“System.String”。 有关问题
不能将 Null 值赋给类型为 System.Int32 (不可为 null 的值类型)的成员,该如何解决
ValueError: Invalid type tf.int32 for Mean_7:0, expected: [tf.float32, tf.float64, tf.float16].
TypeError: Object of type 'int32' is not JSON serializable
Cannot compare types ‘ndarray(dtype=int32)‘ and ‘str‘
theano TypeError: Cannot convert Type TensorType(int32, matrix) (of Variable Subtensor{int64:int64:}
LINQ to Entities 不识别方法“Int32 ToInt32(System.String)
int16, int32, int64等类型区别
与操作系统架构无关的类型(int8 int16 int32 int64)Go语言
Value passed to parameter ‘x‘ has DataType int32 not in list of allowed values: bfloat16, float16, f
unity 报错FormatException: Input string was not in the correct format System.Int32.Parse