[Lazarus] How to check if a string is a valid floating-point number.

Kjow antispammoni at gmail.com
Fri Nov 25 11:18:09 CET 2011

2011/11/25 Michael Van Canneyt <michael at freepascal.org>:
> You should use the default TryStrToFloat() function from the sysutils unit.
> It does exactly that, without exceptions.
> The function result may change if the internationalization/localization
> settings have changed. e.g. if you switch from platform.
> Secondly, please note that in the debugger you will always 'see' the
> exception before it is caught in the exception handler.
> Michael.

Thank you both!

More information about the Lazarus mailing list