In a Libre Base query can anyone say why the following would fail to produce a numeric character with 4 decimals and instead return a column formatted as text showing two decimals? I want the query to store 4 decimals. Whether the internal CAST functions are included or not the column is always formatted as text. The data types of fs and ms_mass are both numeric with one decimal. Thanks.
CAST((CAST("fs_mass" AS DECIMAL (10,4)) + CAST( "ms_mass" AS DECIMAL (10,4)))*.001 AS DECIMAL (10,4))
select CAST((CAST("fs_mass" AS DECIMAL (10,4)) + CAST( "fs_mass" AS DECIMAL (10,4)))*.001 AS DECIMAL (10,4))from "Table1";produced "0.0024", either by going to Tools > SQL or creating as Query1 and running directly.