Number formatting - Help Please!

Hi
I have two problems.
1:
I am converting a float eg(-42) to a Float using "new Float(float val)". The resultant Float is positive (42), any ideas?
2:
I have a Double eg(8000) and want to display it as 8,000. Is there any way I can do this using NumberFormat for example?
Thanks

Hi
I have two problems.
1:
I am converting a float eg(-42) to a Float using "new
Float(float val)". The resultant Float is positive
(42), any ideas?
2:
I have a Double eg(8000) and want to display it as
8,000. Is there any way I can do this using
NumberFormat for example?
ThanksWhat about -
NumberFormat numForm = new NumberFormat.getInstance();
numForm.format(yourValue);

Similar Messages

  • After upgrading to Yosemite I cannot share my pages document by mail as a word format - HELP please!!!

    After upgrading to Yosemite I cannot share my pages document by mail as a word format - HELP please!!!

    You don't need to go to the App Store to for support for Steam and Minecraft. You need to go to their website(s).
    You're welcome 

  • Every time I open one of my CS6 Products I have to re-enter my serial number.  Help Please.

    Every time I open Photoshop, Illustrator or any other CS6 product I have to re-enter my serial number.  Help Please!

    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Mylenium

  • Number Format Help

    I can't seem to figure this out. I have numbers in the
    following formats:
    5.00
    5.76
    6.894
    I would like to format the numbers like this when they are
    displayed on the page:
    5
    5.76
    6.894
    Which function do i use? I tried number format and it keeps
    rounding the decimals. I feel like an idiot but i can't seem to get
    it to work.

    try #val(n)#
    I'd have expected 5.00 to displays as 5 as a matter of
    course, so it's probably being treated as text...

  • How to download movies? I download as well as music, and writes that can't format. help please

    how to download movies? I download as well as music, and writes that can't format. help please

    Check the iTMS, if the movie isn't listed there, it's not for sale.

  • Audigy Sound Blaster model number SB0240 HELP PLEASE

    hello, my Toshiba laptop died a few weeks ago, so i borrowed my brothers desktop. well i had to format and do not have any of the drivers for the computer.
    i went to the support center and found my card by the model number, but the link to my specific driver was no longer found.
    a link to my card's driver would be more than appreciated.
    please help
    !!! >_<

    dkeedy,
    The SB0240 is an? Audigy 2 or Audigy 2 Platinum. Some variants, such as SB0249 and SB0245 are OEM, meaning that they came with the computer, and the commercial software might not work with them.

  • XML formating help Please

    Hi Everyone,
    I'm new to XML and hoping someone can help me. XML seems pretty straightforward, so I'm not sure why I can't get my head around this.
    Here's what I need.
    I'm building a webpage in Dreamweaver using Spry that will have a list of all 50 U.S. states. When you click on a state, it will populate a side area with 2 or 3 cities from that particular state along with a phone number for each city.
    Can anyone give me a small sample of how the formating would be for this?
    I'd really appreciate any help you can give.
    Thanks,
    Moon71

    Your question has nothing to do with Java. Locking this thread.

  • Firmware Update Error/Unable to Format/ HELP PLEASE!

    I have happily been using three 3G ipods with Windows XP via firewire for 9 months or so until recently....
    1. Installed 250GB external USB HD to house music and lost previous library files in the process.
    2. On connecting my 40GB ipod, got request to update and then "Firmware update failure-Disk write error" and the dreaded Exclamation mark folder.
    3. Returned ipod to Apple Service and bought new 60GB Colour ipod the day before going abroard for a month. This works OK although seems slow to be recognised by itunes and update.
    4. Got home today and plugged in my Son's 20GB 3G and got the same problems as above. Tried formatting as suggested in these pages but get "Unable to complete format" message.
    5. Apple due to deliver my repaired/replaced 40GB tomorrow - am I likely to get the same problems, and again if I plug in my Daughter's 20GB. It seems unlikely to get 2 faulty ipods within a month with the same symptoms.
    Any ideas anyone? I've reset, attempted updates and formats umpteen times and have itunes 4.9 and the latest updater. New 60GB seems OK. Many thanks, Nick.

    After running a permissions repair, I ran a disk verification and found that my disk does indeed need repairing. However, I am not currently near my Install disc to perform a disk repair... I will post the results of my disk verification here and ask if it is possible to repair using the 'fsck' alternative. If not, I will attempt to track down my install disc and attempt to repair from there. Thank you both for your help!
    Here were my results:
    Verifying volume “Macintosh HD”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Incorrect number of thread records
    Checking multi-linked files.
    ng Catalog hierarchy.",0)
    Checking Extended Attributes file.
    Overlapped extent allocation (file 4011343 /Users/a/Music/iTunes/Temp File)
    4011343 /Users/a/Music/iTunes/Temp File
    ocation (file %@)",1)
    4014479 /Users/a/Library/Safari/Icons/13/07/2899356373-1884756597.cache
    Checking volume bitmap.
    Volume Bit Map needs minor repair
    Checking volume information.
    Invalid volume free block count
    (It should be 15299667 instead of 15250472)
    The volume Macintosh HD needs to be repaired.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair

  • Ilog for the iphone want to delet some of number need help please

    hi there
    i use iphone 3gs and im looking for apps that let me control all my oncoming and outgoing calls and let me delet them one by one rather deleting them toghter.
    im having lots of trubble with my wife because of that, everytime she looks at my phone and found the call log empty she goes mad at me, so please i need some help
    thank you
    Message was edited by: chadi kassem

    1. if you have something to hide on the call log, buy another phone and don't expect us to help you cheat.
    2. You cannot delete individuals calls - you should have thought of that before getting up to no good

  • Overdrive app Library changes wma to mp3 format help please

    I have iPod 5, iPad 4 and iPhone 5. I use Overdrive app to download Library ebooks and audiobooks.  Overdrive has changed from wma format to mp3 format.  Can anyone tell me how to do this? Thank you

    I am confused. You say OverDrive change the format from WMA to mp3. But then you ask how to do that?
    Do what since you said OverDrive did that?
    The iPod can't play WMA files. They have to be converted to a format compatible with the iPod.
    Itunes Help includes:
    Add items from your computer to your iTunes library
    Do either of the following:
    Drag a file or folder from the desktop to the iTunes window.If you add a folder, all the files it contains are added to your library.
    In iTunes, choose File > Add to Library, locate a file or folder, and click Open.
    By default, adding items to your iTunes library places a pointer to each file in the iTunes folder; the original file remains in the current location. For information about copying files to the iTunes folder instead of creating pointers to them, see Change where your iTunes files are stored. If the file is an unprotected WMA file and you have Windows Media Player Series 9 or later installed, iTunes makes a copy of the file and adds it to your iTunes library. The original WMA file remains unchanged. You can’t add protected WMA files or protected WMV files to iTunes.
    You can also get computer apps to do the conversion

  • Figuring out formats - HELP PLEASE!

    Obviously I'm low on techno smarts... I am working with iMovie 6.0.2 HD. I started a project I've been working on for weeks... it's mostly photos, titles, transitions and about 5 minutes of footage shot in DV mode on an HD/DV camera. I am now almost complete and want to transfer it to iDVD, but when I checked the size of the video (which is only 15 minutes long), it is 18.89GB! Looking at my DVD disks, they only hold 4.7GB...
    I'm guessing I did the project in HD mode... How do I/can I change it so that it will fit on a DVD?
    I have been doing the project off of my external hard drive because it's too big for my computer if that makes a difference...
    Puleese help - it's a volunteer project for a non-profit organizations' 50th anniversary that I promised my Dad. I need to get it to the repro house ASAP. PLEASE SOMEONE SAVE MY BUTT!!!
    Thank you...

    ... they are not novices but do not yet properly master the basics either. ...
    .. perhaps, or coming from a different.. area. did I say switcher?!
    we Mac-users are used to click,boom,done...- from a different perspective: we are guided, limited, single "choice" only...
    (I don't have to tell you all the threads concerning bitrates, 2:30h on sl dvdr-, "I can do this with Nero in less then 15min!!".. stuff like that)
    coming from "where do you want to go today???"-land, you have SO many options, and SO many different ways to reach your goal, you consider ANYthing in your workflow... in German, we have a very derogative nic for PC users "Schrauber" (=screw drivers), meaning, "they" like to construct&rebuilt, repair&deconstruct things, go into tiny bits of detail, ...
    we Mac user have the attitude, to keep the mind clear for ideas, dreams, visions... the "tools" just have to "work"... I don't think, how a hammer is manufactured, I just want to use it.
    and that's it, how I experience the iApps: I use them (within given limits.. ok, a little beyond )... have posted here very little Qs..

  • EMac constant freezing - no bad cap serial number. HELP please.

    Hi,
    I've had my eMac since about november 2004. It's been crashing occasionally for a while now but it's getting ridiculously regular now. Any time I use audio or video editing software or photoshop it freezes after a few minutes. Also it freezes when on safari or even on startup. I checked my serial number against the list of the infamous 'bad cap' eMacs and it doesn't match.
    I just wondered if anyone could let me know the best thing to do. A previous housemate updated my OSX to 10.4.11 against my will and added some other dodgy software. Should i just reinstall my old 10.3.9 OSX?
    Any help would be amazing as I can't afford to upgrade or take it into the shop!!
    Cheers!

    Not very good news, Alex... Though not impossible.
    Unless you are a very good soldering expert, handling the repairs yourself are probably not a good idea - in terms of replacing the bad caps yourself. There's more than just those 2 that you can see - I think about 10-12 - and if you could instead find a cheap replacement logic board, you need to be comfortable working around the insides of a CRT (ie television) which carry nasty voltages.
    The best option is to call Apple directly, and tell them your eMac has just started showing the capacitor problem, covered by the eMac Repair Program, half hidden away on their support page:
    www.apple.com
    www.apple.com/support
    www.apple.com/support/exchange_repair
    www.apple.com/support/exchange_repair/emac.html
    http://www.apple.com/support/emac/repairextensionprogram/
    This Repair Program started in June 2006, 6 months after the eMacs started to fail from this problem. It offered a free repair to those affected. In your case, because your serial number is outside the range, they may say it's not covered, but just tell them that you've looked inside and SEEN the bad caps, leaking and bulging. The Program however only covered the eMacs for 3 years after date of purchase, which has now expired. HOWEVER as noted by mary, some people are still getting a free repair - you just need to be firm, and if the person you first speak to doesn't want to help, ask to speak to a supervisor. DON'T yell... remain calm... just be firm.
    IF you can't get them to come to the party, find out what it will cost for parts & labour to get it repaired. The problem is you need the logic board (brains) of the computer replaced, and originally in 2006 the total cost was around $600 . You can buy these computers on eBay these days for a lot less than that... or a more recent Mac, for that matter.
    Message was edited by: cosmichobo

  • ?  changing from an older computer to a new one.  LR will not recognize my serial number.  Help please

    I am changing from an older computer to a new one.  I downloaded LR on the new one but It will not accept the serial number.  Hepl please

    make sure you're properly 'installing' lr using the installation files:
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Bad major version number! Help please ;-)

    I have been writing applets using the Forte 3.0 sdk.
    I don't as yet use Swing, but rather the standard AWT elements.
    These applets work fine in IE 5, but when I try to view them in Netscape Communicator 4.79, the applet fails to appear and I see the following error message "Applet Editor Error:java.lang.ClassFormatError: Bad major version number"
    I have searched the net and this is some advice I found: "The javac by default compiles for 1.2 compatible vm's. To compile an application to be compatible for both 1.1 and 1.2 vm's use:
    javac -target 1.1 foo.java"
    I'm guessing Netscape isn't 1.2 compatble, despite that the java plugins for 1.4.0 are enabled ( I have checked.).
    So my question is:
    How do I force 1.1 compatability in the Forte IDE?
    I have looked through all the options and cannot find any switches for compatability.
    I'm not using command-line so I can't directly add -target 1.1
    Thank you in advance.

    In Forte go to menu Project->Settings. Open Compiler Types->External Compilation, there you have a property called "External Compiler", click on the value and there you can edit the arguments that are sent to the compiler...
    //Anders =)

  • Convert photos on DVD  to iPhoto format Help Please

    I made a DVD on iDVD of all my photos from a trip to Central Australia.
    I wrongly assumed that this would provide a backup.
    My Hard Drive crashed and I lost all the originals.
    How can I convert the photos on the DVD back to iPhoto format?

    Hello, captncruise,
    Welcome to the discussions.
    Sorry that you had a drive crash.
    Remember the three rules of computering:
    1. Back up
    2. Back up
    3. and Back up again.
    Get an external drive and back up your entire iPhoto Library! Right now!
    What did you have on the DVD....iPhoto slideshow? iMovie of photos? Slideshow created in iDVD? Or, you burned the photos to the DVD-ROM area? If it is the latter, you can just open the ROM file and drag the photos out in their full resolution, so I am assuming that you did not do this.
    If the photos are within an iDVD project, you can retrieve them, but you will lose significant resolution. You will need to use another application to extract the video. You can use Handbrake, or MPEG Streamclip to convert the video clips to DV format and you can 'Save Frame' as JPEG for each photo. However, the results are very grainy and not clear.
    You might want to look into something like these: http://www.xilisoft.com/dvd-snapshot-mac.html
    http://www.imtoo.com/dvd-to-picture-mac.html
    I have not used these...and I am skeptical of anything that says it can produce stunning photos, but they are not too expensive, $25 and might be worth it to you to retrieve your precious photos, even in cruder form.

Maybe you are looking for

  • I photo wont open fully

    I open my 10.6.8 version of iphoto and it opens as far as showing a blank template of its operating window and the bar at the top but with the loading rotating circular curser so i can access any drop down menus in the bar

  • Feature Request - CSS code generation for advanced font - type options

    Thanks to everyone for the amazing work done in Photoshop and Illustrator to enhance the ability to generate and use character and paragraph styles translated to CSS. The last two releases have brought designers something they could only dream of and

  • Lost receipt paid with gift card help!

    Hi i made a purchase at best buy in round rock, tx on 5/05/2015 and i cant find my receipt! my 15 days is almost up please respond asap!

  • Adobe Encore CS5 (Mac) crashes when I create a new project

    Hey everyone, I am running Mac OS X Lion (10.7.3) on a MacBook Pro (Spring 2011). I just installed Encore CS5 fresh off my Master Collection CS5 DVD. When I open Encore and start a new project, once I have my settings configured, I click OK. It waits

  • I am transferring to a new itunes account

    - I know how to use the transfer apps tab but will it also pull through all the purchase history (useful if it does because I often delete and then reinstall apps!).  It helps with memory management this way but the point is does transferring to a ne