the rad function

new topic     » topic index » view thread      » older message » newer message

Roy Shepherd wrote:
> John Worthinhton wrote
> >> Roy Shepherd wrote:
> >> Doug Cox wrote:

Well, you get the idea.

> >> function rad(atom sum)
> >> sum = sum + (180/PI)
> >> return sum
> >> end function
> >but .....  Shouldn't that be "sum = sum * 180 / PI" instead of +???
> I stand corrected. Apologises to all. Well spotted John.

All I can say is "WHEW".  ;')

Also, seems like people are trying in the interest of speed to leave out
steps, so going by that logic, would this be a hair better?  (That
sentence should be taken out and shot, I think, but hopefully, it
managed to make sense anyway?)

function rad2(atom sum)
return sum*180/PI
end function
___
_|ohn

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu