Search:

Type: Posts; User: helloworld922

Search: Search took 0.13 seconds.

  1. Re: Why so many decimal points in my basic code?

    I'm not really sure how to make this any more clear without giving away the solution out-right...

    Again, please use
    tags around your code.

    [code=java]System.out.println("Your fixed salary is...
  2. Re: Why so many decimal points in my basic code?

    Please use code tags in your posts, it makes it much easier to read your code.

    How to do this:



    // your code goes in here


    This looks like:
  3. Re: Why so many decimal points in my basic code?

    Where have you tried putting the code? What does the compiler/program output tell you?
  4. Re: Why so many decimal points in my basic code?

    If you don't want to type it out, just copy/paste the sample code we've provided into your program. You'll have to modify the code slightly to get it to display the message you want and change...
  5. Re: Why so many decimal points in my basic code?

    There are two things going on here. First is the way computers represent floating point numbers. There are several good articles on this topic, I'll link to one: What Every Computer Scientist Should...
Results 1 to 5 of 5