Menu

byte_variable = atan (x_vector,y_vector) not working

Help
MBB
2022-06-09
2022-06-20
  • MBB

    MBB - 2022-06-09

    I'm using GCBASIC 0.99.01 2022-01-27 (Windows 64 bit) : Build 1073 with the 18F4550 chip.

    I'm trying to use this : byte_variable = atan (x_vector,y_vector)

    When I try to compile it I get "Error: Invalid variable name"

    I've changed "byte_variable" to other names but still get the same error.

    Why is this?

     
  • MBB

    MBB - 2022-06-09

    I found the problem. To use this, this must be added #include <maths.h> </maths.h>

    The help file does not state this. You may want to add this to the help file.

     
  • Anobium

    Anobium - 2022-06-20

    I have updated the Help to show the need for #include <maths.h></maths.h>

     

Log in to post a comment.