The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ReadDecimal


Unit: SDL_streams
Class: TMixedFStream
Declaration: function 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.



Last Update: 2023-Dec-13