Hi

are you interested in FMTBcd unit for FPC ?

I would appreciate information needed for clean implementation.
Page used for collecting information is:
http://www.freepascal.org/wiki/index.php/BcdUnit

At this moment most valuable are test cases for different functions.
Also more explanation about different functions would be nice.

Please don't contribute any implementation code.
This is to insure that no code was copied from a copyrighted source.

Thanks
Jan

On Jun 9, 2005, at 03:24, Florian Klaempfl wrote:

Marco van de Voort wrote:
On Fri, 3 Jun 2005, Kornel Kisielewicz wrote:

Florian Klaempfl wrote:

- write a bcd classes

BCD?

Binary Coded Decimal. We urgently need a bcdfmt unit as in delphi.

[...]

I did not find any usable info about the bcdfmt.


Searching for "Delphi precision tbcd" on google yields:

http://64.233.183.104/search?q=cache:97hnmm3AhNEJ: www.delphikingdom.com/asp/ useranswers.asp%3Fid%3D47518+tbcd+delphi+precision&hl=en

which yields the type.

type
  TBcd  = packed record
    Precision: Byte;
    SignSpecialPlaces: Byte;
    Fraction: packed array [0..31] of Byte;
  end;


What is the required interface for the TBCD objects?
Are they normal BCD (0-9) or Telephony BCD (0-9,a-c,*,#,filler) ?
(Google on TBCD took me to ASN.1)


Normal I guess.


A page for info about bcdfmt was started on wiki
http://www.freepascal.org/wiki/index.php/BcdUnit

Sorry I don't have a Delphi and I run on OS X.


Do not look at delphi copyrighted source, but get info from public sources
like helpfiles for download on Borlands FTP etc.

This should be enough to reconstruct a rough interface, details will then
later be found by testing real delphi code.

The FreeCLX contains also an implementation though it's GPL while FPC libraries
are modified LGPL.

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel



_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to