On Mon, 15 Oct 90 20:42:34 GMT Durand Barry P said:
Quote:
>Does anyone out there know how to convert an integer to a longreal
>(in modula2 ofcourse).
>Thanks,
Well depends, which Modula 2 are you using? Try looking at the
VAL procedure.
In TopSpeed it would be something like this:
i: INTEGER;
x: LONGREAL;
....
x:= VAL(LONGREAL, i);
Of course some other version may (prob'ly will) do it differently.
You might also check the FLOAT procedure (in the "standard" (3th ed)
it's for converting CARDINAL to REAL).
Greg