delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/25/08:14:04

Date: Tue, 25 Aug 1998 15:11:47 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Morten Stenshorne <mstensho AT powertech DOT no>
cc: djgpp AT delorie DOT com
Subject: Re: What the $##@$ is going on here!?!?!?
In-Reply-To: <c0.9w.2Md6dl$05o@vangelis.dyn.ml.org>
Message-ID: <Pine.SUN.3.91.980825150820.7520Z-100000@is>
MIME-Version: 1.0

On Mon, 24 Aug 1998, Morten Stenshorne wrote:

> However, if you're use integers, you are right - you should get an 
> divide-by-zero exception.

This exception should in general trigger a signal which should abort the 
program with a traceback.

> Just try this:
> -----------
> double a=5, b=0;
> double c = a / b;
> printf("%f\n", c);
> -----------
> It doesn't cause an exception when I run it.

It depends on the x87 setup.  It might be that by default it doesn't 
produce an exception, but you can change this with the _control87 library 
function.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019