Skip to content
Tristan Hume edited this page Apr 23, 2012 · 2 revisions

#strreal

##Syntax strreal ( s : string ) : real

##Description The strreal function is used to convert a string to a real number. For example, strreal ("2.5e1") will produce an approximation to the number 25.0.

String s must consist of a possibly null sequence of blanks, then an optional plus or minus sign and finally an explicit unsigned real or integer constant.

The realstr, erealstr and frealstr functions approximate the inverse of strreal, although round-off errors keep these from being exact inverses.

##See also realstr.html, erealstr.html, frealstr.html, intstr.html and strint.html functions.

Clone this wiki locally