does not compute (30/35)?!?!?!?!?!!!?!?!?!

This is a discussion on does not compute (30/35)?!?!?!?!?!!!?!?!?! within the C++ Programming forums, part of the General Programming Boards category; i found somthing very odd dand disturbing my compiler will no compute the number 30/35 or other fractions of the ...

  1. #1
    Unregistered
    Guest

    Question does not compute (30/35)?!?!?!?!?!!!?!?!?!

    i found somthing very odd dand disturbing my compiler will no compute the number 30/35 or other fractions of the same value .
    it will not cout it or output it by any other means, including stoping the program with the debugging tool and observing the program directly
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!
    wtf!!!

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Does it work with 30.0/35.0 ?
    zen

  3. #3
    Unregistered
    Guest

    Cool

    some how yes

  4. #4
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    That's because 30 and 35 are integers and if you divide integers you won't get any remainder so 30/35=0.
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 02-22-2009, 02:54 PM
  2. Compute without Limit - support for fractions and 2G Digits!
    By etlam in forum Projects and Job Recruitment
    Replies: 14
    Last Post: 02-07-2008, 12:46 PM
  3. how to compute set intersection efficiently?
    By George2 in forum C Programming
    Replies: 4
    Last Post: 06-02-2006, 10:06 AM
  4. how to compute tan?
    By Little Wolf in forum C++ Programming
    Replies: 1
    Last Post: 05-12-2003, 06:37 AM
  5. compute pi
    By stautze in forum C Programming
    Replies: 12
    Last Post: 08-01-2002, 09:27 PM

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