This language bar is your friend. Select your favorite languages!
Select your favorite languages :
- Or search :
- Clojure
- Clojure
- Clojure
- C++
- C#
- D
- Dart
- Elixir
- Fortran
- Fortran
- Go
- Haskell
- JS
- Java
- Java
- Java
- PHP
- Pascal
- Pascal
- Perl
- Python
- Python
- Python
- Ruby
- Rust
- Rust
double f = Double.parseDouble(s);
Will throw NullPointerException if s is null or NumberFormatException if s does not actually represent a float.
f := s.ToExtended;
* Works correctly in Lazarus IDE v. >= 1.8.0.
* Type Float = Extended
* Type Float = Extended
s = u'545,2222'
locale.setlocale(locale.LC_ALL, 'de')
f = locale.atof(s)
When working with different locale decimal and thousand separators you have to use locale.atof