Menu

SHIFT bit

Help
Gigi
2024-03-13
2024-03-13
  • Gigi

    Gigi - 2024-03-13

    I was trying the multiplication that is normally used << but it doesn't work.
    In the documentation it says:
    MyVar = FnLSL( 1, BitNum)is Equivalent toMyVar = 1<<BitNum`
    Test = FnLSL( 1, test) ' work
    Test = 1<<test ' it does not work

    Am I doing something wrong?

     
  • Anobium

    Anobium - 2024-03-13

    Please read as

    MyVar = FnLSL( 1, BitNum)is the GCBASIC operation for MyVar = 1<<BitNum`

     
  • Gigi

    Gigi - 2024-03-13

    OK, I understand my English is not good, it is equivalent not equal.
    Sorry for the inconvenience, congratulations for the great effort to implement the FLOAT
    Greetings and good work

     
    • Anobium

      Anobium - 2024-03-13

      Thank you, and, not a problem to clarify things.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.