I read some posts on this topic.
I have always read that it is not in the internal representation.
I rather think so.
Create a SQLite table with a field of type:
test 1) Column data type = NUMERIC
test 2) Column data type = TEXT
Insert some values:
You'll get:
1) NUMERIC - NOT ROUNDING
Listview data (loaded from DB): correct
DB data: WRONG
1a) NUMERIC - ROUNDING INTO THE QUERY
Listview data (loaded from DB): correct
DB data: correct
1b) NUMERIC - ROUNDING THE FLOAT VALUES SETTING THE VARIABLES
Listview data (loaded from DB): correct
DB data: WRONG
-------------------------------------------------------------------
2) TEXT - NOT ROUNDING
Listview data (loaded from DB): WRONG
DB data: WRONG
I have always read that it is not in the internal representation.
I rather think so.
Create a SQLite table with a field of type:
test 1) Column data type = NUMERIC
test 2) Column data type = TEXT
Insert some values:
B4X:
Private Query As String
Query = "INSERT INTO TB (Price) VALUES (?)"
Price = 10.1
DB.ExecNonQuery2(Query, Array As Object(Price))
You'll get:
1) NUMERIC - NOT ROUNDING
Listview data (loaded from DB): correct
DB data: WRONG
1a) NUMERIC - ROUNDING INTO THE QUERY
Listview data (loaded from DB): correct
DB data: correct
1b) NUMERIC - ROUNDING THE FLOAT VALUES SETTING THE VARIABLES
Listview data (loaded from DB): correct
DB data: WRONG
-------------------------------------------------------------------
2) TEXT - NOT ROUNDING
Listview data (loaded from DB): WRONG
DB data: WRONG