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
    65
    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
    13,776
    Blog Entries
    7
    Rep Power
    21

    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.
    cenosillicaphobia: the fear for an empty beer glass

  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
    13,776
    Blog Entries
    7
    Rep Power
    21

    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
    cenosillicaphobia: the fear for an empty beer glass

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-29-2011, 12:14 AM
  3. noob question. plz help tho!
    By swp in forum New To Java
    Replies: 2
    Last Post: 09-28-2011, 07:16 AM
  4. Probably Really Noob Question
    By bpx95 in forum New To Java
    Replies: 2
    Last Post: 05-16-2011, 02:44 AM
  5. Question - I'm a noob!
    By Insaeno in forum New To Java
    Replies: 5
    Last Post: 08-04-2008, 04: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
  •