94400d50d4
作为子目录纳入系统,与核心测试管道协同 Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
871 B
Markdown
29 lines
871 B
Markdown
# Numeric Precision and Arithmetic
|
|
|
|
## Test Cases
|
|
|
|
| Test ID | Description |
|
|
|---------|-------------|
|
|
| NP-N001 | COMP-3 decimal alignment (123.45 + 67.89) |
|
|
| NP-N002 | ROUNDED option (10/3, 10/6) |
|
|
| NP-N003 | ON SIZE ERROR trap |
|
|
| NP-N004 | DIVIDE REMAINDER (with quotient and remainder) |
|
|
| NP-N005 | COMP binary sign (negative, min value) |
|
|
| NP-N006 | COMPUTE intermediate precision (large decimal) |
|
|
| NP-N007 | Zero divide (ON SIZE ERROR trap) |
|
|
| NP-A001 | Complex decimal expression |
|
|
| NP-A002 | ON SIZE ERROR with COMPUTE |
|
|
| NP-A003 | Mixed arithmetic operations |
|
|
|
|
## Features Covered
|
|
- Decimal alignment with PIC 9(n)V99
|
|
- ROUNDED clause on arithmetic
|
|
- ON SIZE ERROR exception handling
|
|
- DIVIDE...REMAINDER
|
|
- USAGE COMP signed binary
|
|
- COMPUTE with large intermediate values
|
|
- Zero-divide trapping
|
|
|
|
## Expected Results
|
|
All 10 tests should display PASS.
|