Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,5 +1,10 @@
|
|||
/* A function is not required to detect division by zero. */
|
||||
/* The following statement is executed anywhere prior to */
|
||||
/* executing the statement containing the division by zero. */
|
||||
Proc DivideDZ(a,b) Returns(Float Bin(33));
|
||||
Dcl (a,b,c) Float Bin(33);
|
||||
On ZeroDivide GoTo MyError;
|
||||
c=a/b;
|
||||
Return(c);
|
||||
MyError:
|
||||
Put Skip List('Divide by Zero Detected!');
|
||||
End DivideDZ;
|
||||
|
||||
on zerodivide snap go to trap_zerodivide;
|
||||
xx=DivideDZ(1,0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue