Hi
On Mon, 16 Oct 2000, Stuart Pope wrote:
program testprog(input,output);
uses GPC;
var x : real; fieldwidth : integer; fieldprec : integer;
begin x := 1000.909;
fieldwidth := 0; fieldprec := 0;
writeln('The value of x is ', longReal2Str (x,fieldwidth,fieldprec));
fieldwidth := 0; fieldprec := 3;
writeln('The value of x is ', longReal2Str (x,fieldwidth,fieldprec)); end.
produces the following output:
The value of x is 1001 The value of x is 10091009
tried it here: got ...is 1001 ...is 1000.909
it also works using writeln('the value of x is ', x:fieldwidth:fieldprec );
gpc version 20000917, based on 2.95.2 19991024 (release)
hope this helps Russ