Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By JosAH

Thread: Noob question

  1. #1
    mbschultz97 is offline Super OP Noob
    Join Date
    May 2014
    Location
    Virginia
    Posts
    70
    Rep Power
    0

    Default Noob question

    Hello, I'm currently working on a loan calculator... The only problem I'm having is occasional values that have very long decimals... How do I round the decimals? ty

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,044
    Blog Entries
    7
    Rep Power
    23

    Default Re: Noob question

    Quote Originally Posted by mbschultz97 View Post
    Hello, I'm currently working on a loan calculator... The only problem I'm having is occasional values that have very long decimals... How do I round the decimals? ty
    Read all about it in the API documentation of the Format class and its compadres.

    kind regards,

    Jos
    KevinWorkman likes this.
    The only person who got everything done by Friday was Robinson Crusoe.

  3. #3
    Shadow48402 is offline Member
    Join Date
    May 2014
    Posts
    2
    Rep Power
    0

    Default Re: Noob question


  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,044
    Blog Entries
    7
    Rep Power
    23

    Default Re: Noob question

    Quote Originally Posted by Shadow48402 View Post
    The OP is talking about floats/doubles, not ints; read the thread first before you post.

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. very noob question
    By lams_007 in forum New To Java
    Replies: 4
    Last Post: 01-30-2013, 10:24 PM
  2. noob question!
    By swp in forum New To Java
    Replies: 5
    Last Post: 09-28-2011, 11:14 PM
  3. noob question. plz help tho!
    By swp in forum New To Java
    Replies: 2
    Last Post: 09-28-2011, 06:16 AM
  4. Probably Really Noob Question
    By bpx95 in forum New To Java
    Replies: 2
    Last Post: 05-16-2011, 01:44 AM
  5. Question - I'm a noob!
    By Insaeno in forum New To Java
    Replies: 5
    Last Post: 08-04-2008, 03:20 AM

Posting Permissions

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