Re: [fpc-pascal] Serial port parity...

2010-03-02 Thread Henry Vermaak
On 2 March 2010 12:52, Mihai Rainer wrote: > Hello, > > Is there eny chance to handle the parity bit for serial > port communication? > I am using a 9 bit communication with a device and I need > to control the 9th bit. > I tried synaser. It dows not handle parity for MARK/SPACE. > I have written

Re: [fpc-pascal] floating point an FPC

2010-03-02 Thread Flávio Etrusco
On Mon, Mar 1, 2010 at 6:32 PM, ik wrote: > > http://ik.homelinux.org/ > > > On Mon, Mar 1, 2010 at 23:20, Jerry wrote: >> >> Don't compare floating points. Ever. Now you see why. > > So if I need for example to compare currency or something that is floating > point, how do I do that ? > Let me

[fpc-pascal] Serial port parity...

2010-03-02 Thread Mihai Rainer
Hello, Is there eny chance to handle the parity bit for serial port communication? I am using a 9 bit communication with a device and I need to control the 9th bit. I tried synaser. It dows not handle parity for MARK/SPACE. I have written a procedure to count bits in a byte and config the port for

Re: [fpc-pascal] floating point an FPC

2010-03-02 Thread Marco van de Voort
In our previous episode, Jerry said: > I'm not sure but maybe Hewlett-Packard calculators use BCD. (HP > calculators are known for their excellent numerical accuracy. Yes, at least the Saturn based ones do IIRC. They have 64-bit (16 digit) copro registers as you can see here: http://en.wikiped

Re: [fpc-pascal] floating point an FPC

2010-03-02 Thread Graeme Geldenhuys
ik wrote: > > So if I need for example to compare currency or something that is > floating point, how do I do that ? I think the Currency type is ok (special case with special handling), but other floating types are not. Alternatively, work with Integer types only, and then when you need to di