floating point constants_(re)

Wed, 22 Oct 1997 11:22:35 +0100


Jesper Lund wrote:
> 
> >Hi all,
> >
> >Why do these lines not compile?
> >
> >Const MAXDOUBLE   = 1.79769313486231570e + 308;
> >Const MINDOUBLE   = 2.22507385850720140e - 308;
> >Const MAXFLOAT    = 3.40282346638528860e + 38;
> >Const MINFLOAT    = 1.17549435082228750e - 38;
> >
> 
> GPC doesn't like the spaces between e and +.  Use
> 
>   1.79e+308
> 
> instead of
> 
>   1.79e + 308

You were right. How odd!

> (I am not sure what the official Pascal standard says about this;

Me neither.

> Borland Pascal accepts the spaces).

Then perhaps GPC also should ?

Best regards, The Chief
--------
Dr. Abimbola A. Olowofoyeku (The African Chief) 
Email: laa12@keele.ac.uk
Author of: Chief's Installer Pro 4.01 for Win16 and Win32: 
  Winner of PC PLUS Magazine Gold Award (April 1995 U.K. edition)
  http://ourworld.compuserve.com/homepages/African_Chief/
 
ftp://ftp.demon.co.uk/pub/ibmpc/win3/apps/chief/pro/chief401.zip


The African Chief (laa12@keele.ac.uk)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es