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.
|