Hello, Stuart Pope,
you wrote:
writeln('The value of x is ',x); [...] The value of x is /// /////////e-//8//8
Which version of GPC are you running? This information is important for us if we want to give useful help. (If you are not sure, please type `gpc -v'.)
Peter