mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 03:11:39 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			166 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			166 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| Program Example1;
 | |
| 
 | |
| { Program to demonstrate the Abs function. }
 | |
| 
 | |
| Var 
 | |
|   r : real;
 | |
|   i : integer;
 | |
| 
 | |
| begin
 | |
|   r:=abs(-1.0);   { r:=1.0 }
 | |
|   i:=abs(-21);    { i:=21 }
 | |
| end.
 | 
