[QFJ-411] Issue with formatting of Double Fields like the price field etc. Created: 04/Mar/09 Updated: 15/Nov/12 Resolved: 15/Jan/10 |
|
| Status: | Closed |
| Project: | QuickFIX/J |
| Component/s: | Engine |
| Affects Version/s: | 1.3.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Ketan Chaudhry | Assignee: | Unassigned |
| Resolution: | Not a bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
OS: Solaris Software: Java JRE 1.5.0_10 |
||
| Description |
|
Hi, However, we would like to know if this issue been taken care of ? Are there any immediate fixes available? Thanks |
| Comments |
| Comment by Toli Kuznets [ 04/Mar/09 ] |
|
I believe this is an inherent problem with using doubles. You can recompile QFJ with -Dgenerator.decimal=true to get BigDecimals instead that should solve your problem. this is what we do. |
| Comment by Jörg Thönnes [ 06/Mar/09 ] |
|
Alternatively, you can use setString() to set the String value from the BigDecimal directly. Of course, Tolis suggestions to use the BigDecimal build is the more general one. |