|
发表于 2012-4-22 17:09:00
|
显示全部楼层
ERROR CHECK 2:VALID NUMBER INPUT:
If parameter 2 cannot be converted into a valid decimal integer the
output shall be 'X'.
Note: at this stage only the conversion to a valid decimal number (integer)
is being tested, the number may still be found to be out of range
in later error checking.
NB:333 is valid so is -333, but any number which is NOT an integer should be considered
invalid for Error check 2.
A valid integer is a number for which the value AFTER the decimal point is zero.
Therefore:33.7or 13000.0004are NOT valid.
But:33.or 33.0 or 33.000 are valid input because the value after the decimal point is
zero. |
|