pub unsafe extern "C" fn duckdb_double_to_decimal(
val: f64,
width: u8,
scale: u8,
) -> duckdb_decimalExpand description
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.
history:
- stable: v0.6.0
@param val The double value. @param width @param scale @return duckdb_decimal