Cfront DataTypes

Who have more details on the DBL_Type_BCD… It is made of 12 bytes… but two of them seems ByteArrays. One for the mantissa of the floating point and the other for the slack… plus the exponent. Did any body had access those types directly by reding them from a memory allocated area. Can somebody explain the content of each byte? thanxs

I had palyed with that some time ago. I have found some notes:


bcd:
[Exp bin ][exp][    mantise            ][slack]
0011 1111  3F 78 50 34 12 90 78 56 34 12 00 00  0.123456789012345078
0100 1110  4E 20 51 34 12 90 78 56 34 12 00 00  123,456,789,012,345.12
1100 0010  C2 00 00 00 00 00 00 00 30 12 00 00  -123.00
0100 0010  42 00 00 00 00 00 00 00 30 12 00 00  123.00
1011 1111  BF 00 00 00 00 00 00 00 00 12 00 00  -0.12
0011 1111  3F 00 00 00 00 00 00 00 00 12 00 00  0.12
0011 1011  3B 00 00 00 00 00 00 00 34 12 00 00  0.00001234
1011 1011  BB 00 00 00 00 00 00 00 34 12 00 00  -0.00001234
0100 0110  46 00 00 00 00 00 00 00 30 12 00 00  1,230,000.00
1100 0110  C6 00 00 00 00 00 00 00 30 12 00 00  -1,230,000.00

+--- mantise sign
 +-- comma shift 0 <-  1 -> number in mantise x.xxxxxxxxx
                                              ^
					      +not zero

first two columns are in bin converted next column in hex. Edited by - db on 2002 Aug 12 11:43:18