interesting question...

This is a discussion on interesting question... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; 5 / 2 = 2.5 5 / 2 = ( 2 + 3 ) / 2 ( 2 + 3 ...

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738

    interesting question...

    5 / 2 = 2.5
    5 / 2 = ( 2 + 3 ) / 2

    ( 2 + 3 ) / 2 <-- cancel the 2 = 3 / 1 = 3

    2.5 = 3

    ????
    My Website

    "Circular logic is good because it is."

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Crack isn't good for you...

    See, you have to evaluate what's in the parentheses first, hence:

    (2+3)/2 = 5/2 = 2.5

  3. #3
    Unregistered
    Guest
    actually it's this
    5/2 = 2.5
    5/2 = (2+3)/2
    (2+3)/2 = 2/2 + 3/2 = 1 + 1.5 = 2.5
    sorry.

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    argx...

    what i meant was:

    2 + 3
    ____

    2

    I just didnt want to put it on 2 lines...so i made the ( )...
    My Website

    "Circular logic is good because it is."

  5. #5
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    even though that may be true, unregistered is right...that's what I was trying to say on AIM but I couldn't quite get it right...stupid crack, can never think when I'm on it.

  6. #6
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    857
    2 + 3
    ____

    2

    You have to factor all the numbers:

    1 + 1.5
    ______

    1

    =2.5
    Yoshi

  7. #7
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    ( 2 + 3 ) / 2 <-- cancel the 2 = 3 / 1 = 3
    Make the line clear.


    2+3
    -----
    2

    =>
    2 __ 3 /* underscore is for space*/
    -- + --
    2 __ 2

    => 1 + 1.5

    => 2.5
    Last edited by zahid; 01-13-2002 at 09:17 PM.
    [ Never code before desk work ]
    -------------------------------------:-->
    A man who fears Nothing is the man who Loves Nothing
    If you Love Nothing, what joy is there in your life.
    =------------------------------------------------------= - I may be wrong.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. A question about an interesting Makefile
    By meili100 in forum Tech Board
    Replies: 2
    Last Post: 08-12-2008, 03:56 PM
  3. interesting question about new and nothrow new
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 01-29-2008, 02:53 AM
  4. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 04:22 AM
  5. Question type program for beginners
    By Kirdra in forum C++ Programming
    Replies: 7
    Last Post: 09-15-2002, 05:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21