[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Divide by zero in Lua 5.2 alpha
- From: "Chodera, Ian" <Ian.Chodera@...>
- Date: Wed, 9 Mar 2011 14:06:40 +0000
Try
#include <stdio.h>
int main()
{
double a = 1.0 ;
double b = 0.0 ;
double res = a/b;
printf("res %lf\n",res);
}
In your implementation the compiler did the sum at compilation and gave me NAN, my implemtation throws an exception
--
Sorry for the Delphi attached garbage that follows.
**************************************************************************************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. ****************************************************************************************
- References:
- Does anyone have "assert" blindness ?, Jayanth Acharya
- Re: Does anyone have "assert" blindness ?, Axel Kittenberger
- Divide by zero in Lua 5.2 alpha, Chodera, Ian
- Re: Divide by zero in Lua 5.2 alpha, liam mail
- RE: Divide by zero in Lua 5.2 alpha, Chodera, Ian
- Re: Divide by zero in Lua 5.2 alpha, steve donovan
- RE: Divide by zero in Lua 5.2 alpha, Chodera, Ian
- Re: Divide by zero in Lua 5.2 alpha, steve donovan