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

  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
    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
    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, 01: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, 11:46 AM
  3. how to compute set intersection efficiently?
    By George2 in forum C Programming
    Replies: 4
    Last Post: 06-02-2006, 09:06 AM
  4. how to compute tan?
    By Little Wolf in forum C++ Programming
    Replies: 1
    Last Post: 05-12-2003, 05:37 AM
  5. compute pi
    By stautze in forum C Programming
    Replies: 12
    Last Post: 08-01-2002, 08:27 PM