cleanup, docs
This commit is contained in:
@@ -18,6 +18,5 @@ Parses a trimmed string as a floating-point number.
|
||||
|
||||
Unlike `float_val()`, the whole trimmed string must be consumed by the parser. Empty strings and partially parsed values such as `"3.5ms"` return the fallback.
|
||||
|
||||
```uce
|
||||
f64 timeout = to_f64(context.server->config["REQUEST_TIMEOUT"], 15.0);
|
||||
```
|
||||
:example
|
||||
print(to_f64("3.5"), "\n");
|
||||
|
||||
Reference in New Issue
Block a user