home ~ projects ~ socials

Use f64 In Rust To Store Real/Numeric Values In SQLite

If you use rusqlite, make sure to use f64 instead of f32 to store Real/Numeric values in SQLite databases.

If you use f32 the data will add a bunch of extra values in extra decimal places.

-- end of line --