PROFESSORSPARKIE
Instructor
HOW DO I CONVERT A REAL VALUE TO AN INTEGER?
VAR
LOC : LONGINT;
WORK1 : REAL
LOC := INT(WORK1);
GIVES AN ERROR 75 DATA MISMATCH
I KNOW IT MUST BE SIMPLE BUT I O NOT HAVE A GOOD MANUAL & I HAVE TRIED MANY THINGS. ANY HELP WILL BE APPRECIATED.
THANKS IN ADVANCE, I DO SIMPLE THINGS LIKE THIS IN MANY OTHER LANGUAGES BUT NOT IN PASCAL.
VAR
LOC : LONGINT;
WORK1 : REAL
LOC := INT(WORK1);
GIVES AN ERROR 75 DATA MISMATCH
I KNOW IT MUST BE SIMPLE BUT I O NOT HAVE A GOOD MANUAL & I HAVE TRIED MANY THINGS. ANY HELP WILL BE APPRECIATED.
THANKS IN ADVANCE, I DO SIMPLE THINGS LIKE THIS IN MANY OTHER LANGUAGES BUT NOT IN PASCAL.