Float and Zeos 6.6.1

Forum related to SQLite

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Slavikk
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 01.11.2007, 16:08
Location: Moscow, Russia

Float and Zeos 6.6.1

Post by Slavikk »

If Float field. For added value-3.86. When you see the number of through-TDBGrid see 4 (rather than 3,86). Turning

to editing cell TDBGrid-see 3.86. As always display 3,86 (number of TDBGrid Float through ZQuery)?
User avatar
cipto_kh
Senior Boarder
Senior Boarder
Posts: 83
Joined: 28.09.2005, 11:22
Location: Indonesia
Contact:

Post by cipto_kh »

It's because Zeos use TFloatField and not TBCDField. But to display correctly you must set the DisplayFormat property of the persistant field of your query to #,##0.##
Slavikk
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 01.11.2007, 16:08
Location: Moscow, Russia

Post by Slavikk »

Thanks
User avatar
cipto_kh
Senior Boarder
Senior Boarder
Posts: 83
Joined: 28.09.2005, 11:22
Location: Indonesia
Contact:

Post by cipto_kh »

Slavikk, what version of Zeos you are using? is it Rev305? because in that revision I see a bug in float field (the decimal part is not displayed), and I already solved it in Zeos bugtracker (bug 0000071).
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

It's solved in SVN testing branch as well (Rev 308). Bug 71 slipped in when I committed rev 202, 203 and 204. Unfortunately it did get in trunk as well. There it will be fixed in next merge.

Mark
Slavikk
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 01.11.2007, 16:08
Location: Moscow, Russia

Post by Slavikk »

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Try http://zeosdownload.firmos.at/downloads/snapshots . Here you can find the most recent versions. (=including bug fixes) When you want to be safe use trunk version. If your problem persists please drop a sample project (including data creation script) in the bug tracker.

Mark
Slavikk
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 01.11.2007, 16:08
Location: Moscow, Russia

Post by Slavikk »

Thanks
Post Reply