none
wouldnt computers actually work under false maths? RRS feed

  • Question

  • for the computer if i say a=2

    a=a+2

    for the computer makes perfect sense but for me for what ive learnt doesnt make any sense

    so 2 its equal to 4?

    its like 1nine84 2+2=5 brainwashing

    could someone please elaborate?


    • Edited by antonio glez Wednesday, November 14, 2018 10:34 AM
    Wednesday, November 14, 2018 10:34 AM

Answers

  • The equals sign (=) in the line  a=a+2 is not not "equals" but means in Small Basic  take a, add 2 and  assign the result to a.

    There are computer languages wich distinguishe between equals (=), and assign (e.g  :=), bur Small Basic does not.

    Older Basics used e.g.   LET a=a+2  for assignment.


    Jan [ WhTurner ] The Netherlands

    • Proposed as answer by cvmarus Wednesday, November 14, 2018 9:09 PM
    • Marked as answer by litdevModerator Friday, December 7, 2018 7:46 PM
    Wednesday, November 14, 2018 10:44 AM
    Answerer

All replies

  • The equals sign (=) in the line  a=a+2 is not not "equals" but means in Small Basic  take a, add 2 and  assign the result to a.

    There are computer languages wich distinguishe between equals (=), and assign (e.g  :=), bur Small Basic does not.

    Older Basics used e.g.   LET a=a+2  for assignment.


    Jan [ WhTurner ] The Netherlands

    • Proposed as answer by cvmarus Wednesday, November 14, 2018 9:09 PM
    • Marked as answer by litdevModerator Friday, December 7, 2018 7:46 PM
    Wednesday, November 14, 2018 10:44 AM
    Answerer
  • i see so you temporarily move it and mix it with another number you moved as well and get a third number but its not really equal but a different one, i dont know the = missleads thats why im learning assembler
    Wednesday, November 14, 2018 11:22 AM