Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3165

Re: Double always returning 0.0

From Jason S <jason.savlov@gmail.com>
Newsgroups comp.lang.java.programmer
Date 2011-04-20 14:19 -0400
Message-ID <2011042014193994923-jasonsavlov@gmailcom> (permalink)
References (3 earlier) <iok936$uh9$2@news.albasani.net> <2011041911200138175-jasonsavlov@mecom> <iokioc$kmi$1@news.albasani.net> <2011042013535527735-jasonsavlov@gmailcom> <slrniqu851.phi.avl@gamma.logic.tuwien.ac.at>
Subject Re: Double always returning 0.0

Show all headers | View raw


On 2011-04-20 14:06:25 -0400, Andreas Leitgeb said:

> Jason S <jason.savlov@gmail.com> wrote:
>> Thank you! I understand how that works now. Except it still outputs
>> 0.000 for the cat's weight. Everything else works though.
> 
> If you've now removed the weight field in Dog and Cat (and only left
> the one in Pet), and you still see zero weights, then upload the new
> versions to that url, and repost the URL.

Nevermind, it works. Either the value 0.002 mentioned for the cat's 
acepromazine is a typo, or my cat's weight is too light to return 
anything more than what would be formatted with the decimalformat :p

so it works. http://web.cs.sunyit.edu/~savlovj/CS249/pg472_8.

Thanks for the help guys! Highly appreciated :)

And lew: sorry about the top posting
-- 
Jason

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-18 20:05 -0400
  Re: Double always returning 0.0 markspace <-@.> - 2011-04-18 17:43 -0700
  Re: Double always returning 0.0 Jim <jkorman@alltel.net> - 2011-04-18 20:11 -0500
  Re: Double always returning 0.0 Screamin Lord Byron <scre@min.dot> - 2011-04-19 11:02 +0200
    Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 11:16 -0400
      Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 11:18 -0400
        Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 11:20 -0400
          Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 11:57 -0400
          Re: Double always returning 0.0 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-04-19 16:04 +0000
            Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 17:22 -0400
          Re: Double always returning 0.0 Screamin Lord Byron <scre@min.dot> - 2011-04-19 19:08 +0200
          Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 14:03 -0400
            Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 14:06 -0400
            Re: Double always returning 0.0 Jason S <jason.savlov@gmail.com> - 2011-04-20 13:53 -0400
              Re: Double always returning 0.0 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-04-20 18:06 +0000
                Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-20 14:11 -0400
                Re: Double always returning 0.0 Jason S <jason.savlov@gmail.com> - 2011-04-20 14:19 -0400
                Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-20 14:29 -0400
                [OT] Re: Double always returning 0.0 Stanimir Stamenkov <s7an10@netscape.net> - 2011-04-21 07:30 +0300
      Re: Double always returning 0.0 Screamin Lord Byron <scre@min.dot> - 2011-04-19 19:05 +0200
  Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 13:07 -0400
  Re: Double always returning 0.0 Roedy Green <see_website@mindprod.com.invalid> - 2011-04-19 16:30 -0700

csiph-web