I have a SQL query that returns a column with the BigDecimal
type but my domain model works with f64
:
price: Price::new(record.price).unwrap(),
^^^^^^^^^^^^
rustc: mismatched types
expected `f64`, found struct `BigDecimal`
How can I convert BigDecimal
type into f64
?