Hi Ross,

It's been a while since I used Pascal, but I thought there was a function
for getting the sign of a number - perhaps not.
Well, depending on how much you want to rely on the format of the type used,
you could test for zero and then, if it's not zero, test the high bit, which
usually indicates the sign.

I don't know if this would be much of a speed improvement though.

Regards,

Bevan

---
Bevan Edwards    mailto:[EMAIL PROTECTED]
Achieve Software Limited  http://www.achieve.co.nz
Phone: (64-9) 444-4210   ICQ: 732011
Fax: (64-9) 444-4201
Mobile: (64-21) 979-603

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to