$$$$ ENTI NOTICE JC220346 12/06/18 21:15:00 7404 DATE 12/06/18 Operateur ENTIER Voir aussi : FLOT ---------------- ENTI1 = ENTIER FLOT1 ; LENTI1 = ENTIER LREEL1 ; ENTI1 = ENTIER MOT1 ; LENTI1 = ENTIER LMOT1 ; Description : _____________ The ENTIER operator converts a real FLOT1 (resp. a list of reals LREEL1) into an integer ENTI1 (resp. a list of integers LENTI1) as described : ENTI1 = sign(FLOT1) * n where n is the largest integer <= abs(FLOT1). The ENTIER operator can also convert a string MOT1 (resp. a list of strings LMOT1) into an integer number ENTI1 (resp. a list of integer numbers LENTI1). If a string contains a real number, its truncation follows the same rule as edicted above for FLOT1. Examples : __________ ENTI 0.5 => 0 ENTI -3.2 => -3 ENTI '1.5' => 1 ENTI '2e3' => 2000
© Cast3M 2003 - All rights reserved.
Disclaimer