Logo

Programming-Idioms

History of Idiom 146 > diff from v7 to v8

Edit summary for version 8 by Bart:
New Pascal implementation by user [Bart]

Version 7

2016-09-17, 21:39:03

Version 8

2016-10-02, 15:07:36

Idiom #146 Convert string to floating point number

Extract floating point value f from its string representation s

Idiom #146 Convert string to floating point number

Extract floating point value f from its string representation s

Extra Keywords
real conversion
Extra Keywords
real conversion
Imports
sysutils
Code
f := StrToFloat(s);
Comments bubble
raises an exception if s is not the textual representation of a float (e.g. 'foobar')