/*************************************************************************************************************************************/ /* */ /* V A L E U R A B S O L U E D ' U N N O M B R E : */ /* */ /* */ /* Author of '$xcg/ABSO.01$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 1997??????????). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* I N T E R F A C E ' listG ' : */ /* */ /* */ /* :Debut_listG: */ /* :Fin_listG: */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* D I R E C T I V E S S P E C I F I Q U E S D E C O M P I L A T I O N : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* F I C H I E R S D ' I N C L U D E S : */ /* */ /*************************************************************************************************************************************/ #include INCLUDES_MINI /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* P A R A M E T R E S : */ /* */ /*************************************************************************************************************************************/ #define NOMBRE_0 \ FZERO \ /* Nombre dont on veut la valeur absolue. */ #include xcg/ARIT.01.I" #include xci/valeurs.01.I" /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M A C R O S U T I L E S : */ /* */ /*************************************************************************************************************************************/ #include xci/valeurs.02.I" /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* V A L E U R A B S O L U E D ' U N N O M B R E : */ /* */ /*************************************************************************************************************************************/ BCommande(nombre_d_arguments,arguments) /*-----------------------------------------------------------------------------------------------------------------------------------*/ Bblock DEFV(Float,INIT(nombre,NOMBRE_0)); /* Nombre dont on veut la valeur absolue. */ #include xci/valeurs.03.I" /*..............................................................................................................................*/ GET_ARGUMENTS_(nombre_d_arguments ,BLOC(PROCESS_ARGUMENT_F("x=""nombre=""n=""a=",nombre ,BLOC(DETECTION_DE_PRESENCE_D_UN_ARGUMENT_OBLIGATOIRE;) ,BLOC(VIDE;) ); /* Le 20070325172633 'GET_ARGUMENT_F(...)' a remplace 'PROCESS_ARGUMENT_F(...)' afin de */ /* rendre l'entree de l'argument 'nombre' obligatoire. Au passage, il s'agit plus d'un */ /* exemple d'utilisation de 'DETECTION_DE_PRESENCE_D_UN_ARGUMENT_OBLIGATOIRE' que d'autre */ /* chose... */ PROCESS_ARGUMENTS_DE_PARAMETRAGE_DE_LA_GENERATION_DE_SUITE_DE_VALEURS_1; PROCESS_ARGUMENTS_DE_PARAMETRAGE_DE_LA_GENERATION_DE_SUITE_DE_VALEURS_2; /* Ces deux procedures furent introduites le 20061226182109... */ ) ); EDITION_DE_LA_VALEUR_DE_L_OPERATEUR(ABSO(nombre)); /* Edition de la valeur absolue du nombre... */ RETU_Commande; Eblock ECommande