Thread: What are the results for these?

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    5

    Thumbs up What are the results for these?

    Hi I'm not really sure how to solve this, if a system supports ten digits of precision for floating-point numbers, what are the results for the following computations?
    a. 1.4E+12 + 100.0
    b. 4.2E-8 + 100.0
    c. 3.2E-5 + 3.2E+5

    Thank You.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    http://www.daniweb.com/forums/thread123727.html
    Don't spam the same homework all over the web.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Incorrect results from fmod()?
    By karlthetruth in forum C Programming
    Replies: 4
    Last Post: 04-11-2008, 09:12 AM
  2. Results of March Monthly Contest
    By PJYelton in forum Contests Board
    Replies: 23
    Last Post: 04-17-2005, 09:46 AM
  3. 72hour GDC Results
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 07-05-2004, 11:46 PM
  4. Same seed for srand yields different results
    By codegirl in forum C++ Programming
    Replies: 3
    Last Post: 06-23-2003, 02:39 PM
  5. displaying C program results with excel
    By shauntexx in forum C Programming
    Replies: 1
    Last Post: 12-04-2002, 06:08 AM