[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RiminiLUG-General] java Exception
- To: riminilug-general@xxxxxxxxxxxx
- Subject: [RiminiLUG-General] java Exception
- From: Simeone <hlvs_sime@xxxxxxxx>
- Date: Tue, 19 Jan 2010 15:41:19 +0100
- Authentication-results: dtc.neutrino1.xteklabs.com; dkim=pass header.i=hlvs_sime@xxxxxxxx
- Delivered-to: battarsa@xxxxxxxxxxxx
- Delivered-to: riminilug.it_riminilug_general@xxxxxxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=neutrino1.xteklabs.com; h= message-id:date:from:reply-to:mime-version:to:subject :content-type:content-transfer-encoding; s=postfix; bh=86xYKEHQn PxUB3Zdt6NnxwiZeT0=; b=BScnsdVGFIXpt3K+Tyi4GY6Mv/FXFdhwdgYA6tBDN DoV+uX4IuGtHCZsIh3Gs+dAPP/HCEwdc35x44vaO5PbV5g28qK2Ejwu50qJi3IWm AB2f1nENPW1E/saG1HId8dMBNBWesMeBBRGtZf8EOlNcAJc5+4YueNvVHwI+O6RK 5k=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=Iz0ZE4ZNBy5NaC5JFpwjQMzf3L2zlGNTROuzwHt2K2D7asBJLWkh52zUL7fZ3mu9Huw1a72VG5RQJ4N02JqbMt6/R4EAvPbbCunf/4hH8LFXapk3R0ir/XDVRtf7tONh5aXKBoZu6zyk0B7zgAd21nfsV26GJEGpWiG0w4O9CkM= ;
- Reply-to: riminilug-general@xxxxxxxxxxxx
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Non riesco ad intercettare l'errore "div by zero":
*float leftValue = getEvaluation();
divOpExp.prendiDestra().accept(this);
float rightValue = getEvaluation();
try {
value = leftValue/rightValue; // possibile divisione per
zero !!
}
catch (ArithmeticException exc){
System.out.println("---------Divisione per zero------------");
return false; }
return true;*
nel risultato in* value* mette Infinity, il quale a sua volta non
riesco neanche a confrontarlo!
Alla fine mi torna un true!
Prego una anima buona che si intende di java!
Simeone