chiburashka has asked for the wisdom of the Perl Monks concerning the following question:

why does the following line show an error ? the line: $ao = atan2($dy / $dx); the error: Not enough arguments for atan2 at \PST.TMP line 29, near "$dx)"

Replies are listed 'Best First'.
Re: atan2 problem
by duff (Parson) on May 22, 2004 at 23:22 UTC
    Because your / should be a , (comma).
      tnx :)

        (Found this node via "Worst Nodes of the Day", it was at -2.) I really do not see why should anyone be --d for saying thanks to an answer to his/her question. Sure, it'd be enough to /msg the thanks via chatterbox, but this is no reason for --s. IMHO of course.

        Jenda
        Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
           -- Rick Osborne

        Edit by castaway: Closed small tag in signature