I built a table with a REAL column called QTY but when I try to apply simple math operations it ignores the decimal digits. Here an example:
SELECT QTY, QTY*2.0, QTY+1.0 FROM BOM
| QTY | QTY*2.0 | QTY+1.0 |
|---|---|---|
| 0,67 | 0.0 | 1.0 |
| 1,00 | 2.0 | 2.0 |
| 0,50 | 0.0 | 1.0 |
The QTY type is REAL, here the create table command:
CREATE TABLE IF NOT EXISTS bom(
BOM_ID text NOT NULL,
RM_FK text NOT NULL,
QTY REAL NOT NULL,
PRIMARY KEY (BOM_ID, RM_FK))