Thread: Floating point exceptions

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    9

    Unhappy Floating point exceptions

    I've written c code on a terminal at my workplace, and it compiles and runs.
    when i get home and login the terminal remotely using Xwin32 and Putty ssh, and run the program i get a floating point exception. aaargh!
    What causes the floating point exception?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Without a functioning crystal ball, I can't help you - mine is broken at the moment.

    Seriously, without understanding what your code does, it's impossible to say why one way of running your code is different from another. Try running it with gdb or some such.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    9
    Good point.

    A good craftsman does blame his tools.
    But i'm a bad craftsman, so IT'S ALL BECAUSE OF PUTTY!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Decimal places on Floating point number
    By manutdfan in forum C Programming
    Replies: 1
    Last Post: 10-29-2006, 12:56 PM
  2. How accurate is the following...
    By emeyer in forum C Programming
    Replies: 22
    Last Post: 12-07-2005, 12:07 PM
  3. floating point question
    By Eric Cheong in forum C Programming
    Replies: 8
    Last Post: 09-10-2004, 10:48 PM
  4. 2 questions about floating point and %
    By ams80 in forum C Programming
    Replies: 2
    Last Post: 08-14-2002, 10:55 AM
  5. Replies: 2
    Last Post: 09-10-2001, 12:00 PM