Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. floating point exceptions instead of INF, NaN

floating point exceptions instead of INF, NaN

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sor73naf
    wrote on last edited by
    #1

    In my VC++ project floating point division by zero operations (and overflow/underflow etc.) used to generate 1.#INF000000000000, NaN etc. Recently for some reason the same operations create an error message: Unhandled exception at 0x0341f550 in xevi34_2.exe: 0xC000008E: Floating-point division by zero. Does someone have an idea why this could happen? I am using VCC Studio v8 (2005). Interesting: If I create a new project and try the division by zero there it still gives back the 1.#INF000000000000 value. Thanks! sor73naf

    D 1 Reply Last reply
    0
    • S sor73naf

      In my VC++ project floating point division by zero operations (and overflow/underflow etc.) used to generate 1.#INF000000000000, NaN etc. Recently for some reason the same operations create an error message: Unhandled exception at 0x0341f550 in xevi34_2.exe: 0xC000008E: Floating-point division by zero. Does someone have an idea why this could happen? I am using VCC Studio v8 (2005). Interesting: If I create a new project and try the division by zero there it still gives back the 1.#INF000000000000 value. Thanks! sor73naf

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      Maybe you've enabled the floating point exceptions option (in Project -> Project Properties -> Configuration settings -> C/C++ -> Code generation, option "Enable floating point exceptions")?


      Too many passwords to remember? Try KeePass Password Safe!

      S 1 Reply Last reply
      0
      • D Dominik Reichl

        Maybe you've enabled the floating point exceptions option (in Project -> Project Properties -> Configuration settings -> C/C++ -> Code generation, option "Enable floating point exceptions")?


        Too many passwords to remember? Try KeePass Password Safe!

        S Offline
        S Offline
        sor73naf
        wrote on last edited by
        #3

        Hi Dominik. Thanks for your quick suggestion. Unfortunately, no, this option is not enabled. Any other ideas? Thanks, sor73naf

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups