Double with only 2 number after point

hi,
I have a double with a few number after the poin, I need have only 2 number after the point...
in past I have asked in this forum and receive a good answer...
NumberFormat formatter = new DecimalFormat("00.00");
String Average=formatter.format(Media1);
Now the problem is that Average is a String while I need a double, exists a way to return a double rather than a String...
thanks in advance...

hi,
I have a double with a few number after the poin, I
need have only 2 number after the point...
in past I have asked in this forum and receive a good
answer...
NumberFormat formatter = new DecimalFormat("00.00");
String Average=formatter.format(Media1);
Now the problem is that Average is a String while I
need a double, exists a way to return a double rather
than a String...
thanks in advance...You are confusing a double's value with its representation. The representation (as a string of characters - digits, decimal point, and more digits) is what shows 2 decimal places. That is what DecimalFormat is for.

Similar Messages

  • Issue with only one distribution point not able to access only one folder wile PIXE boot

    I am facing problem only one distribution point not able to reach perticular folder through network access account, all other DP and other folder are working fine, I already verifiy share and security permission are in place, through <a href="file:///\\041TBVELCMS-001.xyz.ORG\SMSPKGE$\VEL000EA\">\\041TBVELCMS001.xyz.ORG\SMSPKGE$\VEL000EA\</a>&nbsp;
    i am able to reach from network, but while booting from system belongs to perticular DP, it stuck on below folder where fdisk.cmd files are uploded from primery server. pls check below logs and suggest what could be the actual issue.
    </p><p></p><p><spanlang="ENIN">Severity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    Site code&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date / Time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System Component&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    Message ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Description</span></p><p><span lang="EN-IN">Error&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Milestone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    CES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1/31/2014 12:32:11 PM&nbsp; MININT-L670NBC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Task
    Sequence Engine&nbsp;&nbsp; 11135&nbsp;&nbsp;&nbsp; The task sequence execution engine failed executing the action (DiskPart DataDisk) in the group (Install Operating System) with the error code 2147942402&nbsp; Action output: T=80070047
    (e:\nts_sms_fre\sms\framework\tscore\tsconnection.cpp,148) Failed to access the share <a href="file:///\\041TBVELCMS-001.xyz.ORG\SMSPKGE$\VEL000EA\">\\041TBVELCMS-001.xyz.ORG\SMSPKGE$\VEL000EA\</a> with network access account !sAccessibleSource.empty(),
    HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,2392) GetAccessibleLocation(pszSource, saResolvedPath, sSourceDirectory, dwFlags, hUserToken), HRESULT=80070002 (e:... [Show more]

    The error 80070047 states a msg as "No more connections can be made to this remote computer at this time because there are already as many connection as the computer can accept." Check the share quota if at all any limitations has been provided, if not,
    try giving one.. Also, check if any enterprise policy has been applied for the share connections limitations..
    bluerail

  • Double with only 4 decimals???

    Hi, this is really a simple question.
    I am trying to list a price list of a few items.
    Each item has an individual price in double primitive type, (for example the
    price of item1 is 2.45).
    When I calculate the total of each item in a list and add all together to get
    the lists total I sometimes get a total value with a lot of decimals, like this
    for example 24,00000000003.
    Now how can I make it with only 4 digits, like this for example, 24,00.
    Below is an example of an item , just to give you an idea.
    Also, a list has many items.
    Thanks!
    public class Item{
      private int quantity;
      private double total;
      private double price;
      public Item(){
    public double getTotal(){
       total = price * quantity;
       return total;
    }

    sorry, check out java.text.DecimalFormat
    http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html

  • Problem dialing only number after changing SIM card on iPhone 4

    I have iPhone 4 , I changed the SIM card for a new number after that I could not dial any number and I keep receiving a massage " call failed "
    I went to the carrier VODAFONE AND THEY CHANGED THEY CHANGED THE SIM TWICE but I have the same problem,
    What shall I do????

    Any iphone locked to ATT cannot be used with any other sim, unless the phone is jailbroken.  In your case, the advice you got is correct.  You iphone cannot be used unless in the US with an ATT sim.  Apple can do nothing.

  • PROBLEMS WITH SERIAL NUMBER AFTER MIGRATING

    I upgraded FCP a few months ago. Today, I migrated all the info to a new computer I just bought, and FCP asks me for a serial number. I entered it, but it now says that the serial number is the upgrade one, that I should enter the original, which I don´t have. Any ideas of what I can do?
    Thanks in advance
    I tried that thread (Library/Application Support/ProApps---), ProApps is not there, nothing...

    If you upgrade software, you're always going to need the serial number of the previous one at one point or another.
    If you registered the software with Apple and/or still have the purchase receipt, you may be in luck. Call 1-800-MY-APPLE and hopefully they will be able to help you.

  • TS1717 My Mac is telling me I can't open iTunes with a number after it -1712.  Why and how do I fix it?

    How Do I fix this?  My mac desktop is less than one year old.  I have no idea what the problem is.  I was using itunes fine importing disks for the last hour.  I force quit it b/c it froze for so long. 

    If someone thought that renaming a Word .doc/x document to .pages would convert the document, it doesn't. Pages ’09 expects a index.xml file  in its document, and there isn't one in .doc/x files. Simply rename that foo.pages document back to foo.doc, and open with Pages ’09.

  • TS1474 What do I do when it says " an unknown error has occured with this number after (13019) while im trying to sync the iPod touch?

    What do I do when this message pops up while trying to sync my iPod touch "An unkwon error has occured" followed by this number in parenthesis (13019)?

    Type "13019" into the search bar at the top of this page by Support and read the resulting help articles.

  • REM Reporting Point line item with operation number 9999

    Dear guru,
    I run MFBF with a REM Profile that post Automatic GR and Activities.
    I have four operation in the material routing (10,20,30,40)
    For the first three operations I want to confirm them with target activities
    I define Third Operation with operation number 30 as "Reporting Point Operation"  and
    set the necessary settings for Reporting Point at Rem Profile.
    After the confirmation I check MF12 (display document log information).
    I see two reporting point line item : one for operation number 30 and one for operation number 9999
    The system update in table AFRU only operation 30.
    So I donu2019t know the activities confirmed with operation 10 and 20.
    Do you help me ?
    Thanks in advance.

    Hi dude:
    Once I had this problem, and was due to a wrong definition of the parameters used in the formula for calculating the activities in to the operations.
    You can chek it in the next path:
    IMG route
    Production > Basic Data > Work Center > Costing > Work Center Formulas > Define formula parameters for work centers & Define formulas for work centers
    Make sure that these parameters are correctly linked to the formulas.
    Please, let me know if this info was useful for you.
    Regards
    Omar Perea

  • I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with

    I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with my apple ID.   Please Help me I speak Spanish so  if my English is not ok  I´m sorry about it.
    Do you think that apple has to   reset in their database of the old serial number attached with my phone number and that’s why I can´t activate imessage and facetime with my number in the new iphone 4s?? 

    I understand all of this Meg; that is why I bought an Iphone; but never expected my phone not even give a at least a 24 or even 12 hours....I work 12 hour shifts and also would expect to have to charge each night but not twice a day or more.  I am not always somewhere I can charge my phone.
    Your points are true; however it doesn't help me......

  • Different Effective Date in One BOM with only ONE Change Number

    Hi gurus
    here is my complete question?
    Is it possible to realize this function that Different Effective Date in One BOM for different BOM items with only ONE Change Number?
    Thanks for your information/help in advance.

    Dear Zhao,
    Using One change number it's not possible to define a different valid from date for the BOM changes of a single material BOM.
    In case if the same change number is used for making different material's BOM component,then a different valid from date for
    each BOM can be defined,but at any given point not for each component/item level of the same BOM.
    Check and revert back.
    Regards
    Mangalraj.S

  • Set up After Effects CS 6 for network rendering with only a single license.

    I have searched on and off a couple of days to find specific setup instructions for submitting projects to network rendering but all I can find refers to somehow installing AE on several machines in a non-license mode and, essentially, submitting a "batch" type job that get distributed, sync'd and collected. OK, I get this. But I find nothing on the details of installing on several machines.
    So assuming I understand things to this point, the question is really how do you install multiple AE6 copies to systems with only a single license? I have a single license key with a CS 6 Premium Suite and would expect that I wouldn't be able to get past Activation after installing or am afraid of trying lest Adobe think I'm attempting to circumvent licensing.
    Thanks in advance for any help.

    > am afraid of trying lest Adobe think I'm attempting to circumvent licensing
    Have no fear. Just do it. There's no risk to trying to install software on as many machines as you like. Even in the cases in which you only have a license to use our software on two machines, the worst thing that happens is that you are told to deactivate on one computer before activating on another.
    See these posts:
    installing After Effects CC render engines with Adobe Creative Cloud
    codecs and the render engine in After Effects CS6 and After Effects CC

  • Make one number after the decimal point

    hi all
    i have a column named quantity from the table job_done
    with values
    1900.8988
    34.67
    0.6788
    236.67
    789999.67676868
    i require the values to be 1900.8
    34.6
    0.6
    236.6
    789999.6
    i just require one number after the decimal point,i know substr but i am confused as to how to achieve this output
    kindly guide
    thanking in advance

    http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions221.htm#SQLRF06150
    Regards
    Etbin
    Edited by: Etbin on 5.5.2013 14:33
    <tt>substr(quantity,1,instr(quantity,'.') + 1)</tt> if those are not numbers but all contain a decimal point
    Edited by: Etbin on 5.5.2013 14:40
    <tt>case instr(quantity,'.') when 0 then quantity else substr(quantity,1,instr(quantity,'.') + 1) end</tt> when there are no <tt>null</tt> values
    <tt>trunc(to_number(quantity),1)</tt> seems to be the safest if quantities are really <tt>to_char(some_number)</tt>

  • I can't reinstall with only a serial number, can I?

    I purchased a MacBook Pro along with the Adobe Design Premium suite about 3.5 years ago. If memory serves, it arrived with the software already installed, and with no discs from Adobe. After a series of repairs, I tried a few times to find a way to reinstall the Adobe products with only the external hard drive that I used for Time Machine backups. But I always failed. And now the external hard drive has failed too. So I believe that I have only the serial number. Can I ever retrieve the Adobe products that I purchased with this laptop?

    You might have to talk to the seller to get the software if they are the ones that originally provided it to you.  If you have the serial number(s), you might be able to download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    http://prodesigntools.com/tag/ddl

  • HT1349 how can you track you ipod with only serial number ]

    2nd Generation ipod Touch

    Hello, Tommyty,
    I am sorry you have lost your iPod.  You don't yet seem to understand that its serial number is not tracked electronically.  Here is my attempt at explaining the same thing that Limnos and stevejobsfan0123 have already told you. 
    Tommytj wrote: ... HT1349 how can you track you ipod with only serial number ] ...
    Only by physically looking at the iPod's serial number.
    Tommytj wrote: i need to find my ipod can anyone help me find a way to track my ipd touch with only a serial number using icloud.
    No.
    Nobody can help you with that request because iCloud and  "Find My iPod touch" do not work that way.
    If you cannot see the iPod, you cannot track its serial number.  Unless someone sees the serial number, nobody can track it.
    Regardless of whether you have properly installed and enabled "Find My iPod touch", iCloud does not track your iPod's serial number.  This is true even when you or someone else can see your iPod's serial number.
    Regardless of how much you wish iCloud could track your iPod's serial number, it cannot.
    "Find My iPod touch" can sometimes track an iPod's location but only under the specific circumstances Limnos has already explained to you. 
    If "Find My iPod touch" cannot locate your iPod by its location, there is no iCloud way to find it.  In that case, the only way to identify your missing iPod is for you or someone else to physically look at it.
    Perhaps you will be successful with one of these alternative possibilities for recovering your iPod:
      • you can physically search and find your misplaced iPod
      • someone may it returned in response to a reward that you offer
      • the police may find it after you have reported it stolen
    Message was edited by: EZ Jim
    Mac OSX 10.7.4

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

Maybe you are looking for

  • Why can't I see my iPhone 4 footage in iMovie? I hear audio, but no video.

    Hello! This issue appeared in iMovie '09, and has persisted into '11. I have reinstalled the app, cleared caches, deleted old projects and all-around run out of ideas. My iPhone 4 footage, and older Flip h.264-encoded footage, will not play in iMovie

  • Sad ex-Eudora user, Apple Mail 5.1 losing messages, me losing clients

    Since I grudgingly switched from Eudora to Mail last week, thanks to Lion, I have been driven slowly crazy by Apple Mail.  It keeps losing important messages from my clients.  I try to either leave them in the INBOX or file them in the appropriate Ma

  • Time Machine / Capsule slow?

    I have a brand new MacBook Pro (2.6 i5 | 8 GB | 250 GB SSD) running OS X 10.9.5. I have an existing 1 TB Time Capsule (older flat style) and have bought an additional 2 TB Time capsule (pillar style). I configured the new unit [TC2] to "extend a wire

  • Disabling touch mode by default for Reader XI

    I am looking to turn off touch mode by default for Reader XI.  I tried the customization wizard and there is no settings for touch mode.  The registry keys for the settings are in the local user area so I don't think I can apply those for everyone. H

  • IDisk temporarily loses files

    Using iDisk recently has been driving me skitz. If I ulpoad web pages onto my iDisk and then move them into a correct folder it freezes finder. Then I realise there seem to be three files that get temporarily lost - page1.html, iestyle.css spacer.gif