floating point constants_(re)

Tue, 21 Oct 1997 20:22:28 +0100 (MET)


>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


(I am not sure what the official Pascal standard says about this; Borland
Pascal accepts the spaces).

Jesper Lund


Jesper Lund (jel@hha.dk)

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