Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 18 Apr 2011 19:05:43 -0500 From: Jason S Newsgroups: comp.lang.java.programmer Date: Mon, 18 Apr 2011 20:05:43 -0400 Message-ID: <201104182005433244-jasonsavlov@mecom> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Double always returning 0.0 User-Agent: Unison/2.1.4 Lines: 10 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-pzgRHqUulfplSnhwkwWACsitJvCVTmXqJDwhWYQLHYiCa5jQ1b5nuWfFIsjx1Y+sVyE8539fstoIi+W!dkmC2aNHoL3QGQTeIjYu/jxana/2TYujJ939wHgBz82qBBbwb4YaPzSBkTfPPg== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1237 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3124 I'm trying to figure out why I can't seem to get my program to return the correct value here. It always returns 0.0 even though I (think) that everything is declared/cast correctly... Code located at http://web.cs.sunyit.edu/~savlovj/CS249/pg472_8 -- Jason