Intrinsic-10 IntIn

Top  Previous  Next

10: variable:= IntIn(device);


This intrinsic gets a decimal integer from the specified input device. It converts the integer from ASCII digits into a binary value.


       X:= IntIn(0);                \Get an integer from the keyboard buffer


After the integer is read in, IntIn is ready to read the next integer. Any leading non-numeric characters, such as spaces and commas, are skipped, and any underlines are ignored. This intrinsic does not return until an integer is read. The integer must be terminated by a non-numeric character.