Phantom Documentation

[Help Home] [Phantom Home]
StrToReal

real StrToReal(string)

Return Type: real
Parameters: string rString

Description:
This function attempts to convert a string to a floating point number. An error will occur if the string is not a floating point number.

Example Code
1 >>string s = "-36.5";
2 >>real r = StrToReal(s);
3 >>disp(r);
-36.50000000000000



Copyright 2000-2011 Phantom Automated Solutions