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.... |
Home ![]() ![]() ![]() ![]() ![]() |
|||||||||||||||||
See also: ReadDecimal, ReadDouble, ReadExtended, ReadInteger | |||||||||||||||||
ReadFPNum |
![]() |
||||||||||||||||
The function ReadFPNum reads and decodes a floating point number from the text stream, starting at the current stream position. Valid characters are the digits '0'...'9', 'E', '.', leading '-' and '+' signs, and leading blanks (ASCII 32), leading tabs (ASCII 9), leading line feeds (ASCII 10) and leading carriage returns (ASCII 13). If the parameter AllowExp is set TRUE the scanned number may be optionally in exponential notation. The parameter DecPoint determines which character is accepted as decimal separator:
On return, the function result contains the corresponding floating point number; the property Position of the stream points to the first character after the scanned number.
|
Hint 2: | 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. |