Hi,

 

I read on the web, but cannot be sure about it. So, question goes here.

 

I have following data to store: 

My currency values only has 2 decimal digits. (Sample: 1.23)

My amount values goes around 5-6 decimal digits. (Sample: 1.123456)

 

If I am to use below SQL command:

CREATE TABLE IF NOT EXISTS ACCOUNTING(

  ID Integer NOT NULL PRIMARY KEY AUTOINCREMENT,

  AmountField float not null,

  MoneyField float not null

);

 

Will it be fine to store these values, and I will retrieve exactly what I
save?

Stored 1.123456 and retrieved 1.123456 exactly, no rounding or anything.

 

One thing I cannot do in my case is to store money values as integers
multiplied by 100.

 

I appreciate all advises.

 

Thanks.

Ertan Küçükoğlu

 

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to