Re: [fpc-devel] Hi listers, , , , I am trying to translate a C headerwith H2PAS

2011-06-17 Thread Skybuck Flying
Another easy solution is the following: 1. Create a C project. 2. Include the file. 3. Printf all key defines. 4. Collect the numbers. 5. Stuff the number into the pascal file. This will circumvent the macro issue. I could probably do this myself but for today I have run out of time. I

Re: [fpc-devel] divide bcd's

2011-06-17 Thread LacaK
Hi Joost, for me: 100/1=10 --error 10/1=10 100/10=10 1000/1=10 --error 1000/10=10 --error 1000/100=10 100/2=50 1007/5=201.4 -Laco. Hi all, Dividing BCD's doesn't go wel: 100/1=10 100/2=overflow 1007/5=overflow It's all in this function in the FmtBCD unit: procedure BCDDivide ( const