Added routines to read and write LONGREALS

This commit is contained in:
ceriel
1989-06-20 11:23:43 +00:00
parent 761312d0dd
commit 9e151cf706
4 changed files with 64 additions and 12 deletions

View File

@@ -102,6 +102,9 @@ DEFINITION MODULE PascalIO;
Input stops at the character following the real.
*)
PROCEDURE ReadLongReal(InputText: Text; VAR Real: LONGREAL);
(* Like ReadReal, but for LONGREAL *)
(***************************************************************************
Output routines;
All these routines result in a runtime error when not called with either
@@ -149,4 +152,7 @@ DEFINITION MODULE PascalIO;
Always use at least "Width" places, blank-padding to the left if needed.
*)
PROCEDURE WriteLongReal(OutputText: Text; Real: LONGREAL;
Width, Nfrac: CARDINAL);
(* Like WriteReal, but for LONGREAL *)
END PascalIO.