Board index » delphi » A 'format strings' problem
Robert Thompson
![]() Delphi Developer |
Wed, 07 May 2003 03:00:00 GMT
A 'format strings' problem
Hello:
Delphi 3 Pro 3.02, BDE 5.11, dBase & Paradox tables, Win 98, Win NT I have a financial app which creates fixed length ASCII file, for 1) field length of 10 Example: $1,200.95 should become 0000120095 The code that *almost* does this is: Write(Outfl,format('%10.10d',[(cbccARdtTableAmount.asinteger * 100 ) This code results in 0000120100 for the example above. It rounds up The *Amount* field in the dBase table is: numeric, 12, 2 I don't know how to get around the problem where if the *conversion Thanks for any ideas on this, Rob. |