Displaying Double 2.0E-4 as 0.0002

Hi people,
I know its a very basic question but could anyone of you please help me with this.
I have a double value 0.0002 stored in the database and I want to display as it is in Java.
But somehow this value is displayed as 2.0E-4 (scientific form)
Could you please help me out????
help will be highly appreciated
Cheers

java.text.DecimalFormat

Similar Messages

  • Preview Doesn't Display Double Spacing In Documents

    Is there a way to display double spacing in preview? It shows up when the document is viewed in Pages and Open Office.

    Hi, Guy Burns,
    What is the resolution of the images you try to enlarge?
    My guess:
    If the resolution of your images is lower then 2560 wide (your screen resolution), the window will open with the exact size and resolution of the picture (for instance 1920 wide). i.e. One pixel on your screen equals one pixel of your picture.You can indeed enlarge the window and zoom in, but then you are enlarging pixels, the image will get less sharp.
    The "Scale large images to fit window" function, is meant for "large images" as the name implies, so images with a larger resolution then your screen resolution. With this function, you can reduce the size of images that would otherwise not fit entirely on your screen, to the necessary size to view the whole picture as big as possible. So this function does not work if the "scale" is 100% or more.
    In slideshow mode however, there's a function to automatically adapt the size of smaller images to "full screen", and also "quicklook" (spacebar) supports full screen mode.

  • How to display double byte characters with system.out.print?

    Hi, I'm a newbie java programmer having trouble to utilize java locale with system io on dos console mode.
    Platform is winxp, jvm1.5,
    File structure is:
    C:\myProg <-root
    C:\myProg\test <-package
    C:\myProg\test\Run.java
    C:\myProg\test\MessageBundle.properties <- default properties
    C:\myProg\test\MessageBundle_zh_HK.properties <- localed properties (written in notepad and save as Unicode, window notepad contains BOM)
    inside MessageBundle.properties:
    test = Hello
    inside Message_zh_HK.properties:
    test = &#21890; //hello in big5 encoding
    run.java:
    package test;
    import java.util.*;
    public class Run{
      public static void main(String[] args){
        Locale locale = new Locale("zh","HK");
        ResourceBundle resource =
            ResourceBundle.getbundle("test.MessageBundle", locale);
        System.out.println(resource.getString("test"));
      }//main
    }//classwhen run this program, it'll kept diplay "hello" instead of the encoded character...
    then when i try run the native2ascii tool against MessageBundle_zh_HK.properties, it starts to display monster characters instead.
    Trying to figure out what I did wrong and how to display double byte characters on console.
    Thank you.
    p.s: while googling, some said dos can only can display ASCII. To demonstrate the dos console is capable of displaying double byte characters, i wrote another helloWorld in chinese using notepad with C# and compile using "csc hello.cs", sure enough, console.write in c# allowed me to display the character I was expecting. Since dos console can print double byte characters, I must be missing something important in this java program.

    after google a brunch, I learned that javac (hence java.exe) does not support BOM (byte order mark).
    I had to use a diff editor to save my text file as unicode without BOM in order for native2ascii to convert into a ascii file.
    Even the property file is in ascii format, I'm still having trouble to display those character in dos console. In fact, I just noticed I can use system.out.println to display double byte character if I embedded the character itself in java source file:
    public class Run {
         public static void main(String[] args) throws UnsupportedEncodingException{
              String msg = "&#20013;&#25991;";    //double byte character
                    try{
                    System.out.println(new String(msg.getBytes("UTF-8")) + " new string");  //this displays fine
                    catch(Exception e){}
                    Locale locale = new Locale("zh", "HK");
              ResourceBundle resource = ResourceBundle.getBundle("test.MessagesBundle", locale);
                    System.out.println(resource.getString("Hey"));      //this will display weird characterso it seems like to me that I must did something wrong in the process of creating properties file from unicode text file...

  • Launchpad Displays Doubles & Triples

    Launchpad displays doubles & triples of most applications. How do I fix this?

    Launchpad will display an icon for each copy of an application that is currently installed (as well as any aliases to those applications), so you will see more than one icon for an application if you have more than one version of the application installed or aliased.
    Prior to installing OS X Lion, if you moved installed applications into sub-folders inside of /Applications, OS X Lion installs the current versions of those applications in /Applications, and leaves the earlier versions of the applications that you moved.
    Taken from:
    http://support.apple.com/kb/HT4836
    Regards,
    Colin R.

  • Unable to display double values in Excel sheet using JExcel API

    Hi
    I am writing code to generate report in the form of Excel Sheet using JExcel API.
    Everything is going fine but whenever I want to put some double values in a cell it is only showing 2 decimal places. My problem is "I want to show upto five decimal places".
    Any kind of reply might help me lot.
    Thank U.

    If you enable the submit zero option, it still happens? This is a new feature on the display tabl
    #NumericZero Enhancements
    To display a numeric zero in place of an error message, you can enter #NumericZero in any of the three Replacement text fields. When you use the #NumericZero option:
    · Excel formatting for the cell is retained.
    · All calculations with dependency on the cell will compute correctly and will take the value of this cell as zero.
    · This numeric zero is for display only. When you submit, the zero value is NOT submitted back to the data source.
    You cannot set display strings for cells that contain an invalid member or dimension name (metadata error). Metadata errors produce standard descriptive error messages.
    Errors are prioritized in the following order from highest to lowest. The error message for a higher-priority error takes precedence over that for a lower-priority error.
    1. (Highest) Metadata errors
    2. #No access
    3. #Invalid/Meaningless
    4. #No data\Missing

  • Delivery quantity displaying double in BW report

    Hi All,
    One CUBE is getting data from two DSO's.
        1st DSO contains Sales deliveries data
        2nd DSO contains Sales Billing data.
    Mappings between CUBE and two DSO's
        Sales Deliveries DSO to CUBE : - Key fields are DELIVERY NUMBER, DELIVERY ITEM, BILLNING NUNMBER (Constant ZERO's), BILLING ITEM (Constant    ZERO)
        Sales Billing DSO to CUBE ; - DELIVERY NUMBER, DELIVERY ITEM, BILLNING NUNMBER, BILLING ITEM
    Data in CUBE:
    There is a one delivery number with two line item (10, 20), and delivery quantity is showing correct in delivery qty key figure
    and second row there is a billing document with same delvery number and with two line items (10, 20) and billing quantity is showing correct in billing qty key figure, but again delivery quantity is displaying in delivery qty key figure for this billing document number.
    Because of this reason delivery quantity is showing double in BW report.
    I want to display correct delivery quantity,
    How can I achieve this?
    Helpful answer will be appreciated with points.
    Thanks in advance,
    Venkat

    Hi Venkata
    You can restrict your Deliv Qty Key figure with Bill Num and Item Num both equal to zero.
    This will pick up Deliv Qty only from one record in cube and wont be duplicated.
    But in this I would have two cubes and build a MultiProvider on these two cubes. Map Deliv only from one cube,
    Regards
    Anindya
    Edited by: Anindya Bose on Nov 17, 2011 11:58 PM

  • Rounding and displaying doubles

    How do you stop a double (eg 12646903) being displayed as 1.2646903E7? ??? .
    Lynda

    If you are talking about rounding doubles, you should take a look at the BigDecimal class. For example if you where rounding currency and lets say you are trying to convert 1.0 at a rate of .787564 you would normally get
    1.26973807842918162841369082385685 but if you wanted to round this to 1.27 you could do the following ...
    double myAmount = 1.0;
    double myRateOfExchange = .787564;
    double myDouble = myAmount / myRateOfExchange;
    BigDecimal bd = new BigDecimal(myDouble).setScale(2,BigDecimal.ROUND_HALF_DOWN);You will need to import BigDecimal to use it. import java.math.BigDecimal;Depending on how you want to round you may want to look at the field index for the BigDecimal class.
    Hope this helps

  • Displaying double quote best practice

    If a user enters a double quote and it gets saved to the database then displaying it fails in the value="" of an input field.
    To fix this I can do a .replaceAll("\"", """) on the form... but it doesn't seem like a good solution to have to do that to every field that should allow a double quote. And while in my case the number of fields is small and setting this up in all the cases that it would be needed is feasible, it seems like it would be better to do this on the front end then to change something in java... somewhere I'm bound to end up with &quot saved to the database if I'm not careful.
    so is there a best practice for this? should I use an EL function inside my ${} to do the replace?
    Thanks

    I tried what you said, but it messed the page all up.
    The replace is inside an input field
    value="${fn:replace(name,'"','& quot;')}"it caused a bunch of errors. I probably would have had to do it inside a <set></set> tag and then referenced that value in the input field I guess.... But I convinced the boss that double quotes are not needed in the name or description. So I just added an onkeydown event to disable double quotes. Hope it doesn't come back and bite me.

  • How can Mapviewer display double-byte characters

    Hi,
    I am facing a problem using Mapviewer to display a map with a title containing double-byte characters e.g. chinese charaters. I think the problem takes place as map_Request producing the map image.
    My environment is :
    NT server 5.0(sp 3)
    Oracle 9.01
    J2EE
    IE 6.0

    are you using the mapclient.jsp demo file? there is a bug in that file that will lead to truncated map requests when the title is in chinese. it will be fixed in the next version of MapViewer (a beta version
    of which will be on OTN soon).
    Thanks,
    LJ

  • Reader 11.0.4 displays double/blurred image. I just uninstalled and reinstalled. Windows 7 64-bit

    Reader XI 11.0.4 displays a double/blurred image. I just uninstalled and reinstalled the software. Windows 7 64-bit

    Is that for any PDF, or just a specific one?  Can you share that PDF?

  • Simple alv  report displaying double click on that goto application

    HI Experts,
    i will working for that simple alv display the report . when ever user double click on that go to next scren . i will work for ECC 6.0 and function module is REUSE_ALV_LIST_DISPLAY   i will write the logic is
    at user-command
    SET PARAMETER ID 'LIF' VALUE FVAL.
    CALL TRANSACTION 'LF03' AND SKIP FIRST SCREEN.
    so any body plz help me.
    advance thanking u.

    Hi
    try this code...
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = W_PROG
    I_CALLBACK_USER_COMMAND = 'PICK'
    I_STRUCTURE_NAME = 'EKKO'
    TABLES
    T_OUTTAB = T_EKKO
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *& Form pick
    * -->UCOMM text
    * -->SELFIELD text
    FORM PICK USING COMMAND LIKE SY-UCOMM
    SELFIELD TYPE SLIS_SELFIELD.
    READ TABLE T_EKKO INTO FS_EKKO INDEX SELFIELD-TABINDEX.
    CASE COMMAND.
    WHEN '&IC1'.
    SET PARAMETER ID 'LIF' VALUE FS_EKKO-EBELN. "here write your field name
    CALL TRANSACTION 'LF03' AND SKIP FIRST SCREEN.

  • Can anybody help me to display double zero or leading zero in a pence column?

    I am trying to convert a public service form which uses sep. columns for pounds and pence - I understand that this is madness but I have to use this for now.
    I need pence to show as 00 or 06 or 12. In MS Excel it is straightforward but Numbers seems trickier.

    Hello Jerrold
    If I understand well, it's a problem which I already treated for a French user.
    He ha a TSV file with this structure :
    aa <tab> 123 <tab> 25
    bb <tab> 124 <tab> 05
    cc <tab> 125 <tab> 00
    and, as there is no way to preset a column format when we import, he got
    aa     123     25
    bb     124     5
    cc     125     0
    So he required a way to restore the original values
    aa     123     25
    bb     124     05
    cc     125     00
    Here the unique difference is that the original file is not a TSV but a CSV :
    aa , 123 , 25
    bb , 124 , 05
    cc , 125 , 00
    As I was asked in the iWork '08 era, I treated the problem with a formula :
    =RIGHT("00"&C,2)
    With iWortk '09, it may be done with a conditional format but the table would be "destroyed" if an export to iWork '08 was needed. This is why my prefered choice remains the formula.
    Numbers is fair enough to accept to rebuild the complete number by :
    =B+(D/100)
    To get a good display, I hide the column C which received the original decimal component.
    Yvan KOENIG (VALLAURIS, France) 9 mai 2011 17:16:59

  • Please Help... datagrid display double..

    i have 7 frames, each frame contain 1 datagrid(instance name
    "datagrid" for all datagrid.
    i put this code in each frame..
    frame 1
    datagrid.addColumn("Name");
    datagrid.addColumn("Address");
    datagrid.addColumn("Phone");
    datagrid.addItem({Name:"John", Address:"Washington",
    Phone:"899"});
    datagrid.addItem({Name:"Luke", Address:"Penn", Phone:"909"});
    Frame 2
    datagrid.addItem({Name:"Sam", Address:"Washington",
    Phone:"999"});
    datagrid.addItem({Name:"Mikey", Address:"Penn",
    Phone:"909"});
    after put the code in frame 2 action, the arrangement of the
    columns changed..
    exmple:- it should be Name, Address then Phone... but it
    changed to Address, Name then Phone.
    Another thing is, it display all the data inserted twice.. so
    there are two John, Luke, Sam and Mikey
    I really have no idea about this; please help...
    One more thing, i've changed the datagrid parameter Editable
    = true..
    so how can i keep the change that i made to the datagrid?
    Anybody have any idea the code should i add to store this
    change into sharedObject.
    Please help, thanks in advance..

    FYi, im using Flash CS3/AS3

  • SQL Developer - displaying double byte (Japanese) characters

    I have installed SQL Developer on an English Windows XP system with Asian regional support installed.
    SQL Developer > preferences > database > set language, territory to Japan/Japanese.
    The strings are displaying as square boxes which means the characters are unable to display, I have verified on a Japanese machine that the characters to display with the same version of SQL Developer.
    Any ideas on how to get these characters to display?

    Hi user625396,
    Square boxes mean font not installed, for example on my Linux box for displaying Chinese:
    Chinese characters in linux see http://isis.poly.edu/~qiming/chinese-debian-mini-howto.html basically:
    1. create a jre/lib/fonts/fallback directory if necessary and
    2. copy or link the fonts files into this directory. (On my Linux system: /usr/share/fonts/truetype/arphic/gbsn00lp.ttf )
    3. I will install Japanese when the business need arises.
    Please confirm this fallback directory works for Japanese and Windows XP, with / changed to \ and the path to a Japanese font replacing /usr/share/fonts/truetype/arphic/gbsn00lp.ttf .
    I had a quick look for a windows XP/Japanese/fallback font page but I could not see one.
    -Turloch

  • On opening 2 browser Tabs are displayed doubling the infomation how can I start with only one browser Tab?

    each time I access firefox 2 tabs are created each with the same information. To retrieve the information I must manually close the second tab else the info will not display properly. I am wondering is there something I can do to stop this from happening? It happens with direct open or from a link and if allready on a web page and open another via link 2 more Tabs are created it can become very crowded and hard to know which was first tab created. I do hope you understand what is happening and hopefully there is a cure. Thanking you Graham Rice

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for