15 lines
289 B
Plaintext
15 lines
289 B
Plaintext
:sig
|
|
f64 float_val(String s)
|
|
|
|
:params
|
|
s : string to be converted
|
|
return value : a f64 containing the number (0 if no number could be identified).
|
|
|
|
:desc
|
|
Extracts a floating point number from a String.
|
|
|
|
|
|
:related
|
|
**PHP:** `floatval()`
|
|
**JavaScript / Node.js:** `Number()` or `parseFloat()`
|