version 1.37, 2011/08/01 10:01:37
|
version 1.40, 2011/09/26 15:57:10
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.2 |
RPL/2 (R) version 4.1.4 |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 3654 formateur_reel(struct_processus *s_etat_
|
Line 3654 formateur_reel(struct_processus *s_etat_
|
if (type == 'R') |
if (type == 'R') |
{ |
{ |
# ifdef FP_INFINITE |
# ifdef FP_INFINITE |
if (isinf((*((real8 *) valeur_numerique)))) |
int signe; |
|
|
|
if ((signe = isinf((*((real8 *) valeur_numerique)))) != 0) |
{ |
{ |
strcpy(chaine, "infinity"); |
if (signe > 0) |
|
{ |
|
strcpy(chaine, "infinity"); |
|
} |
|
else |
|
{ |
|
strcpy(chaine, "-infinity"); |
|
} |
|
|
return(chaine); |
return(chaine); |
} |
} |
# endif |
# endif |