How things add up-VBForums
Results 1 to 4 of 4

Thread: How things add up

  1. #1

    Thread Starter
    PowerPoster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    2,184

    How things add up

    I got this wrong when it was said as a sentence:

    What is forty plus forty times zero plus one? I said one. The person that asked me said no it is forty one. I plugged that into a program as:

    Dim X as long
    X = 40 + 40 * 0 + 1
    msgbox(X)

    and the answer came out as 41 which is correct.

    I've never been good at math but I remember now something about doing multiplication and division first followed by adding and subtracting. What I can't remember is what mathmatical rule(s) that is called.

    Anyone know?

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

  3. #3
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    11,476

    Re: How things add up

    BODMAS = Brackets Order (Of) Division Multiplication Addition and Subtraction
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    DON'T BUMP YOUR POSTS!!! Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    36,812

    Re: How things add up

    Thread moved to the 'Maths' forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.