What are the results for these?

This is a discussion on What are the results for these? within the C++ Programming forums, part of the General Programming Boards category; Hi I'm not really sure how to solve this, if a system supports ten digits of precision for floating-point numbers, ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 05:08 AM

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