Hi all,

does someone else see the same result as me?  I have (for example):

Cos(90 * (Pi/180)) // The center bracket deals with the conversion of
degrees to radians.

When I do this in Delphi, it returns garbage like this

 -2.7105054312e-20 // As opposed to 0.

The Sin function returns the correct result of 1. Using 180 with Cos works,
but use 180 with Sin, you get garbage again.  It seems to be where Sin(X) or
Cos(X) hits 0 and it spits the dummy.  Values approaching the limit are
correct.  Any hints?


Tony Sinclair

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to