BigDecimal formatting -- Please Help!!!

Hi all,
Could anyone please tell a Java newbie how to format BigDecimal? I have a variable defined as BigDecimal. I am displaying that value in a JTable. I need to format the value with commas but not cents.... i.e. 23,245 not 23,245.24. Is this possible and if so, how?
Please help!!!
Thanks in advance.
Lynn

Hi,
try
java.math.BigDecimal big = new java.math.BigDecimal(23245.24);
java.text.DecimalFormatSymbols symbols = new java.text.DecimalFormatSymbols();
symbols.setGroupingSeparator(',');
java.text.DecimalFormat formatter = new java.text.DecimalFormat("###,###",symbols);
String res=formatter.format(big);
you can then put the res String in the JTable
regards

Similar Messages

  • Hello i am rajesh i am having problem while conveting other files into pdf format please help me

    i am rajesh i am having problem while converting other files into acrobat format please help me

    Hello Rajesh,
    I'm sorry to hear you're having trouble. Are you using Acrobat.com to convert your files to PDF? Please let me know where you are having trouble and I will do my best to help you convert your files. For your reference, here is a list of filetypes that can be converted to PDF online with Acrobat.com:
    http://kb2.adobe.com/cps/524/cpsid_52456.html#Create%20PDF
    Best,
    Rebecca

  • 5th Gen iPod error while formating please help

    Ok here is the long and complicated story. I had a iPod Mini 4GB and thought it was time to upgrade to a 30GB. itunes and everything working just fine up to the point where I went and loaded the ipod disc to format my new iPod. I incountered a iPodDeviceInternal assert error when the program started to format the iPod and failed to complete the install. I tried over and over again. I loaded itunes and it said that the iPod could not be Recognized and that i should reinstall itunes. I then went to Best Buy were I bought it and took it to the Geek Squad tech. center and he hooked it up and it worked fine,then telling me to try downloading the newest version of itunes. I did and it installed fine...but when i click it, it doesnt open. so baically I cant get itunes to open and my iPod will not format. Please Help me

    Can you see iPod drive under Removable disk in My Computer?
    If so,try disk defragment on it or manually format your iPod and lastly redo the whole installation process

  • Report format - Please help urgently

    We have an AR report with the following format.
    Customer - Document No -Payment terms
    Currently, the report rows shows for one customer ( Text and Key) for various document number and Payment terms.
    Example:
    Customer 1 - Document no1 - payment terms1
                      - Document no2 - payment terms2
                      - Document no3 - payment terms3
                      - Document no4 - payment terms4
    Customer 2 - Document no5 - payment terms5
                      - Document no6 - payment terms6
    But, the requirement is as below. Every line needs to show the customer no for all the rows.
    Customer 1 - Document no1 - payment terms1
    Customer 1 - Document no2 - payment terms2
    Customer 1 - Document no3 - payment terms3
    Customer 1 - Document no4 - payment terms4
    Customer 2 - Document no5 - payment terms5
    Customer 2 - Document no6 - payment terms6
    Please help.
    Thanks,
    BW Learner

    Hi,
    Right click on the query results and choose properties at the bottom of the pop menu.  Uncheck the option titled "Suppress Repeated Key Values" then click okay.   Your query will update the results and you should see all characteristics now, even if they are repeated.
    Brian

  • Computer wont boot up after format, please help.

    Ok so I formatted my Hp Elite M9340f and now whenever I turn my PC on it just goes to PC repair and I have all these options and one of them is system recovery, but I cant use system recovery because it says that I need to choose an operating system now,and it says to insert a media disc or find an image of my operating system, so what do I do in this case to get my PC working again, and the other options don't work either, says the same thing " find your operating system" or something like that, please help.

    Hi,
    If you don't have recovery disks then try the below link:
    HP Recovery Disks.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Reports on web in PDF format (Please Help)

    Hi
    I am testing my dev2000 applications on web. I am using Patch5. I have problem while running reports. When ever I am trying to run a report from forms using "RUN_PRODUCT", report is running on server m/c not on client m/c. I need this report to be opened in clients pc in acrobat. On server m/c (Win2000 Server) registry I have set forms60_repformat=PDF. Please help to solve this peoblem.
    Thanks in Advance
    Syed

    read the paper on forms and reports integration on the web from
    http://otn.oracle.com/products/forms/techlisting.html#internet

  • TS4170 When I try to connect to netflix via HDM1 the message is " invalid format" please help

    I cannot access Netflx via my tv using HDM1 as usual get this message instead " invalid format" Tried rebooting - no luck HELP please!

    Try:                                               
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Report o/p needed in particular format----please help

    Hi all,
    I am developing a report o/p of which is a file in excel format.Now in the file for the data which is being exported to the file,I need to make the following changes:
    Follwing are the columns in the file:
    g/l acc    amount  vendor   description  company code.
    At each change in the company code value,I need to insert a new line in the file (file data) which should have the sum of the amounts in the column "amount" in the new line and  the company code .All other fields in the new line should be blank.See below for the exact o/p needed:
            g/l acc       amount    vendor   description                 company code.
             5550601     10            ABC      VISA FEB 2009          US02
             5550601     20            ABC      VISA FEB 2009          US02
             5550601     30            ABC      VISA FEB 2009          US02
             5550601     40            ABC      VISA FEB 2009          US02
    -->new line -
      100                                                      US02
             5550609     15            ABC      VISA FEB 2009          US03
             5550609     15            ABC      VISA FEB 2009          US03
             5550609     17            ABC      VISA FEB 2009          US03
             5550609     18            ABC      VISA FEB 2009          US03
    -->new line           65                                                       US03
             5550607     15            ABC      VISA FEB 2009          US04
    Can anyone explain how to modify the data(before creating the file)  to get the o/p in the file  as mentioned above?
    Thanks.

    data = b(6) type n .
    itab1[] = itab[].
    loop at itab into w_itab.
    index = index + 1.
    a = a + amount.
    w_itab-bukrs = itab-bukrs.
    at end of 
    w_itab-amount = a.
    b = b + 1.
    ind = index + b.
    append itab1 from w_itab index ind.
    clear a.
    endat.
    endloop.
    PBS - please use code tags.
    Edited by: Rob Burbank on Mar 24, 2009 2:43 PM

  • Downloaded photoshop Windows and now need Mac format - please help

    Hi wondering if someone can help me. I recently downloaded Photoshop for Windows and now have switched to a Mac. Is there anyway I can switch my product registration or download over from a windows to a Mac format? and is there a cost involved, or do I need to start again?
    Thanks in anticipation!
    Cate

    There are separate, dedicated license numbers for Macintosh and Windows. 
    You need to get on the phone to call Adobe Customer Service and request a "crossgrade", which involves a letter of destruction of the Windows version.  There's a "nominal" charge.

  • Broken monitor, external stopped mirroring during format. please help

    I broke my screen and was formatting to sell it using an external monitor and during the format my screen is no longer mirrored. how do i get it to mirror again?

    Is no one responding to this because it is not possible? does anyone have suggestions on how i can finish the format?

  • Number Format Please help

    I have a float value like 232453.75
    now I want to format it as
    2,32,453.75
    Is this possible using some java classes directly rather than going in for a string manipulation.
    Thanks

    Thanks
    But is there a sample code for the same available in the net that can do the same?
    Thanks

  • Unsupported Image Format - Please Help

    Since upgrading Aperture to 1.5 all my RAW images (.CRW & .CR2) from my Canon 300D and 20D, initially show when I click them and then very quickly turn to a maron coloured box with the words 'Unsupported Image Format'. I am really worried about this as it's not just 1 or 2, but all my RAW images which is about 80% of my library. All JPG images are fine.
    I would be very greatful to hear some work arounds to this.
    Thanks

    Hello,
    It's not your RAM. Folks on quite a few forums have been reporting similar problems. As well there have been several threads on this forum of a similar nature.
    I've a similar, but different "Unsupported Image Format" error.
    I shoot Canon's 1Dsmk2 and 5D cameras, both of which put out .CR2 files, and both of which are supported by Aperture.
    So far Aperture has been able to open all of these.
    However, I converted quite a few of them to DNG files with the last version (Adobe DNG converter 3.4 I think - 3.5 is the current version so I'm guessing the last one was 3.4)
    Aperture is unable to open any of these DNG files. I get that same 1/2 second preview flash and then the error.
    All of these DNG files open fine with PS CS2, Bridge, Lightroom. They also appear correctly with other Apple Products - Preview and iPhoto [ 6.0.5 (316) ].
    So the problem seems to be Aperture specific.
    I've done some tests with the latest Adobe DNG converter (version 3.5). There are basically 4 settings that one can alter. Embed original, size of preview, compression, and to store the file as a mosaic or linear. If the "linear" option is selected, alone or in combination with any of the other options, then Aperture cannot open the file.
    If linear (in version 3.5) is not selected then Aperature seems to be able to open the files converted with all of the other options, either selected alone or in combinations.
    None of my DNG's converted with the last converter (3.4) had the "linear" option selected.
    Also, I've tried running a DNG created with v3.4 through the v3.5 converter to see if it would then open in Aperture, but this didn't work.
    I've tried rebuilding the library and the other fixes mentioned by others here - every other program except Aperture seems to be able to open these files.
    So, I'm hoping that there is a v1.5.1 out pretty quickly whicch addresses these image compatibility errors.
    Steve

  • Trying to import video but getting "file is unrecognized format" - please help!

    Hey,
    I tried importing videos to my iPhoto '11 library that were taken on a Samsung WB600 digital camera. The files are .MP4 extension but I keep getting an error saying that the file is unreadable and that it is an unrecognized format. I tried changing to various other extensions, such as .mpeg; .mpg and .avi. Each time I keep getting the same message, but the strange thing is that one video captured on the camera from the same import group made it in to the library without any problems. Any suggestions would be much appreciated!
    Thanks!
    Mo

    Hi Mo
    The file within that import group, that worked, did that file also have an .mp4 extension? Also, just changing the file extension doesn't work, you need to convert it using a video conversion software.
    It worked very well on iPhoto 09 and iPhoto 11 before the latest upgrade on Nov/2011.
    The original videos that I have imported are still working, but right now if I try to import new movie files (mp4) recorded from my camera, it is not recognized as a valid file, although Quicktime plays it perfectly.

  • My iPod isn't letting me change the song on it's regular format, please help?

    Ok, I was playing my music but when I went to change the song, nothing would move on the screen. It would contine on with the song/album but the screen remained frozen. I have no idea what's going on, it's fully charged, I haven't dropped it (It's in a case even if I did happen to), and it hasn't done this before. If I click the home button I can move around on my others apps with no problem, it's only the music that's acting up. Any tips on what to do? Thanks - XXX
    Also (Not sure if this is imortant), If I search the song and play it, everything continues playing an all, but it's like I can't click on anything (This is a bit difficult to discribe)

    This is an iPod touch, correct?
    Have you tried doing a Restart?
    http://support.apple.com/kb/ht1430

  • Sit files please help asap

    how do i open .sit files? its a star wars galactic battles demo and its in an .sit format please help soon

    you need stuffit expander
    i googled it really quickly and came up with this,
    http://www.stuffit.com/mac/expander/index.html
    im pretty sure that this is the website, its been a while since i downloaded it.
    hope this helps,
    troy

Maybe you are looking for

  • Can any one believe this tech support trying to delete legacy adobe apps!!!!!!

    Vipin: May I have your permission to connect to your computer remotely and try to solve the problem while you watch? ADOBE CUSTOMER: I need to know that NONE of my legacy adobe apps will be affected. CS5 suite and CS6 products will NOT be affected is

  • [Help: Urgent] problems with accessing /console after apparent successful install of Portal server SP3.0sp3a

    Hi, HW: Sun Solaris 2.8 I would really appreciate it you can cc: me if you can shed any light as to whats going wrong, and what I should do to fix the following problem. Portal server doesn't allow one to access /console (or /login) - 0 length docume

  • SRM stock item catalog / reservation

    Hi gurus, We are investigating SRM in a ext classic scenario.  We saw that SRM does not support creating MM reservation for parts kept in stock.  For item kept in stock as per SRM definition we must have an internal catalog to reflect these parts as

  • OVM High Availability

    Hi, I have setup an Oracle VM Server (OVS) running Oracle VM Manager (OVM) on it. This will be used as my DOM-U. Can I setup a server pool within itself? If so, how? Thanks, Cathy

  • Option delete all

    hi all have an n78. when you go into messages can i add an option of delete all messages, it's a pain doing one by one