Client APIs
API Reference Overview
Converts a double value to a duckdb_decimal object.  
If the conversion fails because the double value is too big, or the width/scale are invalid the result will be 0.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_decimal duckdb_double_to_decimal(
double val,
uint8_t width,
uint8_t scale
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `val`: The double value.  
###### Return Value {#docs:api:c:api::return-value}  
The converted `duckdb_decimal` element.  
<br>