parsereal


Purpose
Convert a text into a real.
Synopsis
function parsereal(txt:text,start:integer):real
function parsereal(txt:text):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:
123.4
7
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. This control parameter is used as the starting position when start is not provided.
Related topics
parseint, parseextn, parsetext, nextfield, sys_endparse
Module
mmsystem


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.