/*************************************************************************************************************************************/ /* */ /* T R O N C A T I O N D ' U N N O M B R E : */ /* */ /* */ /* Author of '$xcg/TROQ.01$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 20210315102610). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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_X \ FDU #define ORIGINE___DU_SEGMENT \ FZERO #define EXTREMITE_DU_SEGMENT \ FU /* Definition du nombre et du segment de troncation. */ #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" /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* T R O N C A T I O N D ' U N N O M B R E : */ /* */ /*************************************************************************************************************************************/ BCommande(nombre_d_arguments,arguments) /*-----------------------------------------------------------------------------------------------------------------------------------*/ Bblock DEFV(Float,INIT(nombre_X,NOMBRE_X)); DEFV(Float,INIT(origine___du_segment,ORIGINE___DU_SEGMENT)); DEFV(Float,INIT(extremite_du_segment,EXTREMITE_DU_SEGMENT)); /* Definition du nombre et du segment de troncation. */ #include xci/valeurs.03.I" /*..............................................................................................................................*/ GET_ARGUMENTS_(nombre_d_arguments ,BLOC(GET_ARGUMENT_F("x=""nombre_X=""X=",nombre_X); GET_ARGUMENT_F("origine=""ori=",origine___du_segment); GET_ARGUMENT_F("extremite=""ext=",extremite_du_segment); 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 20061226182255... */ ) ); EDITION_DE_LA_VALEUR_DE_L_OPERATEUR(TROQ(nombre_X,origine___du_segment,extremite_du_segment)); /* Troncation de 'x' dans [origine,extremite] en notant que la relation d'ordre naturelle */ /* entre 'origine' et 'extremite' (origine<=extremite) n'est pas necessairement verifiee... */ RETU_Commande; Eblock ECommande