[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Str_to_Real


Purpose   Converts a string to a real.

Decln.    Str_to_Real(Str:string):real;

Returns   Real

Remarks   Str is the source string.

          If the string is null or cannot be successfully converted to a
          real, the function returns a zero.

Example

VAR
  R : REAL;
BEGIN
    R := STR_TO_REAL('59.99');
END;

The variable R is assigned the value 59.99.

See Also: Int_to_Str Str_to_Long Str_to_Int
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson