Janilabo

Janilabo | DecE() [SCAR Divi]

May 8th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.43 KB | None | 0 0
  1. {==============================================================================]  
  2.   Explanation: Decreases the x value by N.              
  3. [==============================================================================}
  4. procedure DecE(var x: Extended; N: Extended);
  5. begin
  6.   case (x <> N) of
  7.     True: x := (x - N);
  8.     False: x := 0.0;  
  9.   end;
  10. end;
  11.  
  12. var
  13.   e: Extended;
  14.  
  15. begin
  16.   DecE(e, 99.999);
  17.   WriteLn(e);  
  18. end.
Advertisement
Add Comment
Please, Sign In to add comment