215算术上溢错误(pascal)是什么意思

来源:百度知道 编辑:UC知道 时间:2024/05/21 07:02:32
如标题

就是超出你所定义的类型的范围,比如你定义了一个integer,计算结果却是40000(integer的最大范围是32767),或者你定义了一个数组,下标为1..100,可你的下标却为300。至于楼下说的除以0,错误号码是200。

数值溢出,开大点数据基类型试试

好像是什么超出数据范围吧(比如你的一个integer型赋值等于maxinteger+1)……或者是哪一步的时候后不小心除以了0

谢谢楼下

Run-time error 215:
Arithmetic over flow error
This error is reported when the result of an arithmetic operation is outside
of its supported range. Contrary to Turbo Pascal, this error is only reported
for 32-bit or 64-bit arithmetic over flows. This is due to the fact that
everything is converted to 32-bit or 64-bit before doing the actual arithmetic
operation.
简单地说就是运算的时候数值溢出了。。。