Results 1 to 4 of 4
  1. #1
    Gold is offline Member
    Join Date
    Dec 2009
    Posts
    2
    Rep Power
    0

    Smile Decimals in java help!!

    hi
    i need some help with java
    ive got an assignment and 1 of the questions is 22 divided by 1000000 see i no the answer is 0.000022 but everytime i try it in bluej i keep gettin the answer as 0.0 ive tried float and double could anyone suggest another way for me to get my answer showing correctly

    thank you

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

  3. #3
    Gold is offline Member
    Join Date
    Dec 2009
    Posts
    2
    Rep Power
    0

    Default

    ok i tried that and it did not work :(
    thanks for ur help

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Gold View Post
    ok i tried that and it did not work :(
    thanks for ur help
    Well, my suggestion works, but without seeing your code, we'll have no idea what you're doing wrong.

Similar Threads

  1. number to word with decimals
    By fertas in forum New To Java
    Replies: 3
    Last Post: 08-30-2008, 04:12 AM
  2. Replies: 1
    Last Post: 07-02-2008, 02:58 PM
  3. get more decimals?!?! please help!
    By michcio in forum New To Java
    Replies: 7
    Last Post: 05-22-2008, 11:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •