View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gnrnr Gnrnr is offline
external usenet poster
 
Posts: 2
Default Using COS in VBA, incorrect value returned

I did a bit of a search on this but when using VBA and having the
following equation the Cos function returns a value of 1 rather than
the correct -1. What am i doing wrong?

temp=cos(pi)

regards

Steve