Purpose
Convert a text into a real.
Synopsis
function parsereal(txt:text,start:integer):real
Arguments
txt
|
A text object
|
start
|
Starting position in the text
|
Return value
The real represented by the string.
Example
The following:
t:=text("a123.4b")
writeln(parsereal(t,2))
writeln(getparam("sys_endparse"))
produces this output:
Further information
The parsing begins at the specified starting position and stops
as soon as an invalid character is found. This location is then stored
in the parameter
sys_endparse.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.