mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 03:19:47 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			393 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			393 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
Program Example67;
 | 
						|
 | 
						|
{ This program demonstrates the FloatToStr function }
 | 
						|
 | 
						|
Uses sysutils;
 | 
						|
 | 
						|
Procedure Testit (Value : Extended);
 | 
						|
 | 
						|
begin
 | 
						|
  Writeln (Value,' -> ',FloatToStr(Value));
 | 
						|
  Writeln (-Value,' -> ',FloatToStr(-Value));
 | 
						|
end;
 | 
						|
 | 
						|
Begin
 | 
						|
  Testit (0.0);
 | 
						|
  Testit (1.1);
 | 
						|
  Testit (1.1e-3);
 | 
						|
  Testit (1.1e-20);
 | 
						|
  Testit (1.1e-200);
 | 
						|
  Testit (1.1e+3);
 | 
						|
  Testit (1.1e+20);
 | 
						|
  Testit (1.1e+200);
 | 
						|
End. |