I have a database but in one column there are floating numbers. I want to remove the digits after the decimal point in a table in SQLite database. What query should be used to remove the digits after the decimal?
For round value: (2.34 = 2, 2.89 = 3)
SELECT round(column) FROM sample
For Floor value: (2.34 = 2, 2.89 = 2)
SELECT cast(column as int) FROM sample
Is this what you want ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With