ex67.pp 393 B

1234567891011121314151617181920212223
  1. Program Example67;
  2. { This program demonstrates the FloatToStr function }
  3. Uses sysutils;
  4. Procedure Testit (Value : Extended);
  5. begin
  6. Writeln (Value,' -> ',FloatToStr(Value));
  7. Writeln (-Value,' -> ',FloatToStr(-Value));
  8. end;
  9. Begin
  10. Testit (0.0);
  11. Testit (1.1);
  12. Testit (1.1e-3);
  13. Testit (1.1e-20);
  14. Testit (1.1e-200);
  15. Testit (1.1e+3);
  16. Testit (1.1e+20);
  17. Testit (1.1e+200);
  18. End.