Skip to main content

duckdb_create_decimal

Function duckdb_create_decimal 

Source
pub unsafe extern "C" fn duckdb_create_decimal(
    input: duckdb_decimal,
) -> duckdb_value
Expand description

Creates a DECIMAL value from a duckdb_decimal

The width must be between 1 and 38, and the scale must not exceed the width.

@param input The duckdb_decimal value @return The value, or nullptr if the width or scale are out of range. This must be destroyed with duckdb_destroy_value.