Double number Display problem

Hi,
in my programe i have the following calculation
double a= 12;
double b= 74;
tonum = Math.pow(a,b);
charcount = new Double(count).toString();
System.out.println("The value of charcount is : "+ charcount);
when i do this it displays "7.234561410946297E79"
how do i display the number without this "E" ??
thanks

The problem is you cannot get 7*10^79 into a long.
I slammed out this code:
<code>
import java.text.NumberFormat;
public class Test {
     public static void main( String[] arg ) {
          double d = 7.234561410946297E79;
          System.out.println( NumberFormat.getInstance().format( d ));
</code>
and got this output:
72,345,614,109,462,970,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
Probably still not exactly what you are looking for, but take a look at the NumberFormat class and see if you think it will work for you.
}

Similar Messages

  • Large number display problem

    I get an number from my db column (SQL2000), and I need to display a accumulative sum of that column.
    I am now facing a problem of the automatic convertion of the sum when it is greater than 9999999.
    For example, when the sum is now 12345678 it will automatically convert it into 1.2345678E8.
    Please tell me how to solve it. I want the float to display exactly 12345678.
    Besides, when I want to display the float as in the format of 12,345,678, please tell me how I can do it.
    I list part of my coding for your reference.
    float accumTot = 0;
    accumTot = accumTot + Float.parseFloat(salamt.getTotAmt());
    out.println("<td width='15%'><p>"+accumTot+"</p></td>");
    Many Thanks

    java.text.NumberFormat will have your solution:
    NumberFormat nf = NumberFormat.getInstance();
    <%= nf.format(accumTot) %>
    Be aware of the rounding errors involved in using floating point:
    What Every Computer Scientist Should Know About Floating-Point Arithmetic
    Are the numbers whole numbers (ie no decimals)? then you should be using an int/long
    Otherwise you should probably be using doubles.

  • Smart form number display problem

    Hi Guys,
    I want to display output in following mannner in smartforms.
    eg : 10.4
    minus sign should be display above the decimal place of number.
    Please help!!
    Thank you,
    Bhaskar.

    Hi,
    Thanks for the reply.
    I have tried it and it put the sign infront of the number,however I want sign to be display at the head of the number.
    e.q  :     _
             10.31
    ok man thanks for this reply!!!!
    Thanks & Regards,
    Bhaskar.

  • Weird event display problem in week view

    Hi. I'm getting a weird display problem in week view. First time this has ever happened.
    Some events appear to be missing, but when i double click on where I know the event is supposed to be, a new event is created (as excepted), and the missing events suddenly appear. When i move forward or back by a week, and then return to the week in question, the missing events are gone again. But, I can see the missing events in day view or month view.
    Any ideas?

    Dean,
    Next, try reinstalling the Mac OS X v10.6.2 Update (Combo).
    If that is unsuccessful:
    1. Use iCal>Export...>for each one of your individual calendars.
    2. Delete all but one of your calendars.
    3. Create a calendar and name it "Test."
    4. Delete the calendar which remained after step #2.
    5. Quit iCal.
    6. Remove the iCal plist, and drag the iCal plist file to your Desktop.
    7. Log out/in or restart.
    8. Restart iCal and use iCal>File>Import...for each one of the calendars that you exported in step #1.
    9. Delete the "Test" calendar, and any "Home/Work" calendar which was automatically created when you opened iCal in step #8.
    ;~)

  • 2x iMac G5: Both Logic Board and Display Problems, Warrenty?

    Hello,
    Thank you for looking at this topic.
    I am Jeroen from The Netherlands and proud owner of several Mac Mini's, iMac's and Macbook's. I have 2times the iMac G5, a beautiful machine, but both not working since 2 months.
    I have two times the iMac G5 with iSight, both have logic board and display problems.
    The first iMac doenst start at all, black screen, i hear the chime, but nothing happening. After a minute i see one horizantal white stripe but nothing happens.
    The second iMac has weird horizantal stripes also, but the computer starts. It gives a finder and questionmark icon. After a while the fans go crazy.
    Both these symptons are widely known on the internet. I would like to get this fixed, but prices are crazy. And because this is a common issue I would expect to get this fixed for no costs. I have contacted several Apple resellers but they shown me high prices and bad services. On these forums I've saw people in the USA who get this fixed free of charge.
    Does anyone has any advice for me? I'll call apple USA this morning.
    Thankyou for ur time.

    Welcome to Apple Discussions.
    I know of no repair extension authorization which provides for the repair of either computer you describe beyond its original 12 month period of coverage. If either machine is covered by a warranty extension program provided by AppleCare, then the parts, labor or both required to replace the defective components may be offered at no charge to you. Final determination of eligibility is made at the part level by authorized Apple service providers or dealers and by the specific serial number of the machine submitted for service.
    Absent a warranty extension, however, it is quite likely that you will have to pay for the repairs is you elect to have them performed.

  • Display Problem - Light Coming From Top

    Hello,
    So I recently purchased a 27" iMac, and have noticed a display problem when viewing in full screen mode. Its only an issue if there is black along the top of the screen (such as the black bars when watching a movie or trailer). When there is black along the top, you can see some white light kind of bleeding in from the top edge - kind of all the way along (very narrow), but more pronounced at certain spots. I browsed the forums, but couldn't find anything that seemed real similar (though there are a number of reports of a yellow tinge on the bottom).
    I guess I"m just wondering if this is a common LED problem - or if my display may be defective, and I should take it back.
    Thanks in advance.

    Hi Pullo
    There has been a few reports, but nothing wide spread.
    http://discussions.apple.com/thread.jspa?messageID=3005885&#3005885
    http://discussions.apple.com/thread.jspa?messageID=7722386&#7722386
    If it's noticeable, then most definitely take it back.
    Dennis

  • No Caller Number Display since August 2014

    Caller number display ceased to function on 9th August last year.
    Since the we have been through the fault reporting process 3 times. Had an aborted (by Openreach) engineer visit and received a statement letter from BT saying they are looking in to the problem, it will take time etc etc.
    My equipment works at my neighbours house. The neighbours phone has been tried in my house and does not work. I have removed filters, unplugged everything, tried the Master Socket. None of these things works.
    It is very tough to run my business without Caller Number Display.
    Can it be fixed???
    If I switch to another provider will Caller Number Display then work??
    Help!

    Hi Unclenorm,
    Welcome to the community forum. I am sorry to hear that you are having problems with the Caller Display. I'll be able to take a look at this for you. Please can you send me in your details using the "Contact The Mods" link found in my profile.
    Thanks
    PaddyB
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • How can I change the number displayed when I make a call/send a sms? Despite transferring my old number across to my iphone messages.and Facetime are made from the original sim number and not mine. Any ideas?

    I've transferred my old number by PAT code to my new iphone and most of the time it works fine however there are problems when replying to tests and using Facetime when the original sim muber is displayed. My frined can text me on my correct number but if I reply she receives it from the different number. Also when using Facetime the number displayed is the one the came with the iphone. Anyone know what to do to get the number id correct?

    Tell her to contact her carrier and get a new phone number.

  • Reporting display problems to Apple

    If you are having display problems, you should not be waiting for others to complain or just sit there stewing in your juices. Call AppleCare and tell them what's going on. People in IT have told me that one of the most frustrating things that they encounter are customers who do not complain about real problems. If they don't complain, no one knows that there's a problem, and the customer just gets depressed or hostile for mysterious reasons. You may discover that someone has been doing some kind of awkward work-around for a software problem or bug, and when you ask then how long that has been going on, they may say 5 years!
    I just called AppleCare earlier today and carefully explained the symptoms of my screen and why it bothered me. I tried to explain that the gradient problem is triggering alarm bells in my brain that there must be some kind of vision problem. The guy on the other end was very patient, asked questions, and really seemed to listen. He admitted to me that they need to know this stuff. I finally had to get off the phone because of a lightning storm, but I got a case number to continue the conversation later this weekend.

    Let us know what happens! I've also been on the phone with Apple -- three times in the past week -- and I've gotten two different people to actually admit, in a sort of weak way, that they're actually aware of the problem. They want my machine to go to "repair", since I'm past the 14 days, first suggesting that I bring it to the Apple Store far from my neighborhood, and then telling me that I can get a site visit after complaining that I hardly have time to get there (totally true) and I'm small and the thing is difficult for me to carry (totally true), although I have to wait for my extended AppleCare, which I purchased yesterday, to arrive in the mail. One of them told me that she thought she's heard of some of these problems actually being fixed. We'll see.
    Two of them have suggested that I try an archive/reinstall, just to confirm that it's not a software problem, although both admitted that it was probably a hardware problem anyway. Has anyone tried that? Has anyone wondered what that original iMac update 1.0 actually did?
    I've been trying to emphasize my theory about a DC offset on the LCD inverter output, and supposedly they are taking notes, but I wonder if any of that actually makes it up to the engineers. I'm hardly a crank. I have science, very advanced math, and IT backgrounds, and did a lot of tinkering with electronics as a kid. I really wish I could talk directly to the engineers.
    And speaking from a long IT background, I can say that one of the most dangerous customer relations things you can do is deny that a real problem exists. That tactic always backfires with a vengeance.

  • Graphics display problems (dialog boxes) Lenovo G50 AMD A6 Win 8.1

    Graphics display problems Lenovo G50 AMD A6 Win 8.1 Greetings to all. After having spent a number of days trying to find a solution to a display problem, I turn to this forum for help. I own a Lenovo G50 AMD A6 Win 8.1 ever since November 2014, and have had display problems ever since the first day, be it while using internet (Firefox or Explorer) or various software (Text editors, etc.). Many dialog boxes, including colour settings and controls (open, close etc.) either have an inappropriate appearance or even do not appear at all! I manage to "click" on the right places using memory: most areas are INVISIBLE! Another example would be that I do not see any backround colour or image on most webpages such as this one).  Some suggestions included checking for graphics updates (but the drivers used were already up-to-date).  I 'd be most obliged for any new suggestions. Thank you very much. George

    Greetings to all, I finally decided to express my utmost discontent with- the Lenovo G50-45 I bought before Christmas 2014,- the summary response with inappropriate links that I received after exposing  my problem- the fact that I tried to dowload the following graphics driver  (Beema) AMD Driver (VGA, HDAudio, SATA) for Windows 8.1 (64-bit)
    exe
    526 MB
    Windows 8.1 (64-bit)
    VGA V14.502.1002.1002-Logo'd_HDAudio v9.0.0.9905_SATA v1.3.1.220;VGA v13.302.1601.1001_HDAudio v9.0.0.9905_SATA v1.3.1.220
    3/19/2015from here(http://support.lenovo.com/fr/fr/products/laptops-and-netbooks/lenovo-g-series-laptops/g50-45-notebook-lenovo/downloads/DS100174), and after REFUSING to accept cookies and some "Lenovo Service Bridge", finally managed to obtain something  HERE(http://www.notebookcheck.net/Lenovo-IdeaPad-G50-45-Notebook-Review-Update.125641.0.html).  I find it quite disrespectful to NOT provide customers with EASY support, as well as avoiding to  answer their requests for further help when some simplistic "assistance" that one can find almost anywhere on the web leads to no further solution. I shall not repeat the problems I have faced till now: vide supra. The problem, however,  is NOT just with browsers.I simply cannot see any dialog box content and colour in MANY software programs, such as OPEN OFFICE; for instance:  PRESENTATION colour dialog boxes show BLANK squares instead of squares filled with different colours. This has occured AVER SINCE DAY ONE! Finally, a new bug has appeared: Windows 8.1 keeps popping up some email program to which I am invited to register - I never created a Windows email account, and certainly don't intend to do so.NOR shall I accept some "Lenovo Service Bridge", however "discreet and inoffensive" it might be. I don't know if there are any legal grounds for customers to complain for all these problems. I DO know, however, that I shall NEVER buy a LENOVO device ever again. The pricing and processor might be competitive => yet,  the support that ensues is, as far as I'm concerned, LAMENTABLE. To make a presentation, I have to switch to a Samsung R20 using XP..... What is the meaning of all this? George    

  • May I know how to round a double number to 2 decimal points?

    if I have a double number 135.25689951591, how can I round this number to make it output as 135.26?

    double number = 135.25689951591;
    java.text.DecimalFormat df = new java.text.DecimalFormat("#.00");
    System.out.println(df.format(number));Alll this will do is display the value 135.26, number will still hold 135.25689951591

  • LINE DISPLAY PROBLEMS

    LINE PROBLEMS - Using photoshop elements 10. Windows 7 - 64 bit.  I am having problems with "line" displaying correctly after I draw them.  The line tool is working correctly, it's the display on the screen that is not.  When I draw multiple lines in an open project some of them seem to disappear on the screen.  If I print they DO print but I cannot see them all to correctly complete my project. This happens when I use the grid and when I don't.  It happens when I do the lines all on different layer or a single layer. It happens If I duplicate layers and if I just manually draw lines on new layers.  The lines will appear and disappear randomly if I zoom in and out...  It is not always the same lines, not always in the same place and no other consitencies in this. They don't even show correctly in the print preview pane.... My moniter is working fine and I have no display problems in any other programs.  Any ideas what is causing this? This problem does not seem to happen with any other shape just line.  Also happens when I creat a line "brush" and use it. 

    Yes, I just double checked all my drivers now and they were already up to date...... This has me puzzled!

  • Timeline Display problem

    I am stumped and so is everyone I know. I have several clips that do not work properly once I place them onto the timeline.
    The audio plays fine but the video doesn't. All it shows is a single frame. The footage works fine in the Viewer but not in Canvass once i have placed it into the timeline. It seems to be a problem with _only a few of the clips._ Most of them work just fine. The video plays in the timeline for a while but once it comes to a cut where the source comes from one of these clips it shows only a single frame.
    Here is the kicker. The frame that is shown is always from a different clip. Never from the actual source.
    I know this is a display problem because I have tried Exporting the timeline with a few of these glitches present and the cut comes out just fine. That is a comforting thought but I do need to see what I am working on.
    Please, please help me. Is there a setting i need to change to either the clip or the Canvass? Is this a hardware problem? Am I being a complete amateur? Please help.

    I was hoping that wouldn't be what you would say but I was beginning to think the clips were exported wrong. Thanks. Sorry for the double posting. I was having trouble finding this original post. I thought it had been deleted. It has happened before. Not on Apple.com but elsewhere.

  • Display problems when adding a document

    Hi,
    one of our customers is facing a strange problem. He runs SBO 8.8 PL18 on Windows Server 2008 R2, and the users work in SBO through Terminal Server. I will do my best to explain what happens.
    When one adds a manual journal entry, the screen flickers the same number of times there are rows. Let me explain the flickering. Suppose you have 10 rows. When you click Update, the table that displays the rows is kind of refresh or repainted 10 times, then fields are empty ready for a new journal entry. The best way I can describe what one can see is that the table is rolled down as many times as there are rows. Unfortunately I have not been able to record the flickering.
    This take some times, and users fell eyes fatigue because of the flickering. I have seen it on my own computer, so this problem does not relate to the computer used to work with SBO. I am told that it happens as well in A/P Invoices.
    The only hint I have is that display problem does not takes place with a TS established on Server 2003.
    Any hint at what this can be, has someone else seen this ?
    Thanks

    Hello,
    If you are using Add-on then it will happed because programmer set keyword last focus in which cell and i think your programmer have code for some arthritic operation on grid then it will happen.
    So discuss your programmer it will solve issue or give proper explanation for same.
    It will defiantly through add-on .
    for tesing pupose stop the add-on then try make new document.
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on May 21, 2011 8:07 AM

  • Printed double number of copies (Invoice printing)

    Hi,
    While giving print for invoice from vf03 its printing double number of copies i.e. if i configure 3 copies in
    communication methods then it is printing 6 or 5 or 7 copies.
    Please need information where could be the problem.
    Thanks & Regards,
    Amit

    Hi Amit,
      The extra copies your getting are they blank?
    If you have used page-break option make sure there are no blank lines before it.
    Coz it will result in a blank page.
    Hope it helps!
    Much Regards,
    Amuktha.

Maybe you are looking for

  • Creation of order

    Dear Cons    I want to create a P.O by giving acct. assignment F ( order). For this order no. is necessary. pl. tell me the menu path or T-code for creation of  order. nrk

  • How to find out the save as setting information in illustrator cs3?

    How to find out the save as setting information in illustrator cs3 through programmatically. I saved the file using the setting like Overprint, EmbedAllFonts, IncludeDocumentThumbnails throgh scripting. But i don't know how to find out the save as se

  • Can not install Oracle 9i in window XP

    I downloaded Oracle 9i database (disk 1, 2 & 3). When I ran setup.exe in the directory of disk 1, there is an error of Oracle Universal Installer: "The Java Run Time Environment was not found at d:\temp\OraInstall2003-01-23_04-56-21PM\jre\bin\javaw.e

  • [solved] dhcpcd: timed out after reinstalling arch

    Hi erveryone! After reinstalling arch I can't connect to my wireless network anymore. Typed: wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant_vienna.conf dhcpcd wlan0 Got: dhcpcd: wlan0: waiting for carrier dhcpcd: timed out wpa_supplicant_vi

  • Android 5.0 and ISE

    Hi, Anybody tried ISE Native Supplicant Provisioning with Android 5.0? I have ISE 1.3 in production and I can do NSP on iPad iOS 8.0.2 and Nexus 7 Android KitKat 4.4.4 but the Cisco Network Setup Assistant app. doesn't work with Nexus 5 Android Lolli