DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


ReadDecimal

Declaration: TMixedFStream.ReadDecimal: integer;
The function ReadDecimal reads and decodes a decimal number from a text stream starting at the current stream position. Valid characters are the digits '0'...'9', leading '-', '+', blanks, CR (carriage return) and LF (line feed).

On return, ReadDecimal contains the corresponding integer number; the property Position of the stream points to the first character after the scanned number.

Hint: In order to avoid reading data beyond the end of the stream, the user should call the function Eos before reading the stream data. Reading beyond the end of the stream yields undefined results.