Category : Modula II Source Code
Archive   : M2CMP20.ZIP
Filename : REALINOU.DEF
(* (C) Copyright 1987,1988 Fitted Software Tools. All rights reserved. *)
(*
This module is an extension of InOut and provides routines
for reading and writing REAL numbers.
This module does its I/O thru InOut.
*)
VAR Done :BOOLEAN;
PROCEDURE ReadReal( VAR x :REAL );
(*
reads a string.
the string is then converted to a REAL which is returned in x.
a real in the format defined for Modula-2 REAL literals is expected
Done is set to TRUE if a valid REAL number is read.
*)
PROCEDURE WriteReal( x: REAL; n: CARDINAL );
(*
x is written in scientific notation, right justified in a field
of at least n characters.
*)
PROCEDURE ReadLongReal( VAR x :LONGREAL );
PROCEDURE WriteLongReal( x: LONGREAL; n: CARDINAL );
END RealInOut.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/