Logo

Programming-Idioms

History of Idiom 146 > diff from v18 to v19

Edit summary for version 19 by Matek:
New Pascal implementation by user [Matek]

Version 18

2018-02-13, 22:55:24

Version 19

2018-03-10, 23:22:34

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
uses sysutils;
Code
f := s.ToExtended;
Comments bubble
* Works correctly in Lazarus IDE v. >= 1.8.0.
* Type Float = Extended
Doc URL
https://www.freepascal.org/docs-html/rtl/sysutils/tstringhelper.toextended.html