cleanup, docs
This commit is contained in:
@@ -6,12 +6,14 @@ f64 : fallback returned when conversion is not possible
|
||||
return value : converted value or the fallback
|
||||
|
||||
:see
|
||||
>types
|
||||
0_DValue
|
||||
2_DValue_get_by_path
|
||||
|
||||
:content
|
||||
Converts strings, f64, bool, pointer, and single-value maps to a finite double. Invalid or empty strings return the default.
|
||||
|
||||
```cpp
|
||||
f64 price = row["price"].to_f64();
|
||||
```
|
||||
:example
|
||||
DValue value;
|
||||
value = "12.5";
|
||||
print(value.to_f64(), "\n");
|
||||
|
||||
Reference in New Issue
Block a user