blob: a547db2976f964204f96716e3185a2dc045beb60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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.
|