Corin Anderson (magellanic) wrote,
Corin Anderson
magellanic

nan

nan is not a very good value for a probability. Handy that math.h includes a macro finite(), which fits neatly into an assert: assert(finite(p));

Successful debugging can be very satisfying. Especially if the bug isn't a stupid mistake and you don't have time pressure.
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments