Search:

Type: Posts; User: Junky

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    1,613

    [SOLVED] Re: Help with method returning a double

    Use an if/else statement rather than separate if statements.

    I'm not sure what you are asking. What is wrong with how you have coded it? Other than magic numbers are frowned upon.

    By the way...
  2. Replies
    9
    Views
    1,613

    [SOLVED] Re: Help with method returning a double

    You know that.
    I know that.

    But the compiler doesn't care about what happened earlier in the method. All it knows is that it can get to the end of your method, past the 2 if statements, and there...
  3. Replies
    9
    Views
    1,613

    [SOLVED] Re: Help with method returning a double

    What happens when k == 0?
  4. Replies
    9
    Views
    1,613

    [SOLVED] Re: Help with method returning a double

    A few pointers that help us to help you.

    When posting code you should wrap it in code tags. Click the BB code link at the bottom of the page for more information.

    "It doesn't work" which is...
Results 1 to 4 of 4