How to convert value from exp. value to double/float???

Hi all,
I am fetching values from database, which is of type double / float.
eg. values will be like -22,777,548 will be stored in database.
NOw if i use
float a= rs.getFloat(1);
out.println("a="+a);
I get output as a= -2.2777548E7
I want to remove "E" from out put value and display as it was given in DB.
How to solve this problem?
Please Help!
Regards
Ashvini

What do you mean - 'how does it work' ? All format classes (MessageFormat, DecimalFormat , SimpleDateFormat etc) are used to convert data from one form to other. Go through the java.text.* api. They work based on some pattern searches, pattern matches etc - dont know in detail :)
As for the other things, thanks :)
cheers,
ram.

Similar Messages

  • How to retrieve data from domain(Value Range)  of the table

    hi
    how to retrieve data from domain(Value Range)  of the table
    thanks

    Hello,
    You can try using the FM: DOMAIN_VALUE_GET TB_DOMAINVALUES_GET.
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 24, 2009 10:08 AM

  • Replacing Null Values From existing values in table.

    Hi
    Using 9i R(2).
    Tbl_1
    Col_A varchar2
    Col_B varchar2
    Col_C varchar3
    (no PK/FK)
    I want to inset the missing values (null values) of columns B & C by taking values from filled values from same table on base of Col_A.
    Examples
    Col_A || Col_B || Col_C
    Item_1 || Red || 2Kg
    Item_2 || Blue || 1.5 Kg
    Item_1 || Null || Null
    I want to inset values in the Null value fields of Row3 (Col_B & CoL_C) from Row1 as Col_A is same at both rows.
    Please advise how to do it efficiently.
    Thanks
    Jawad

    http://www.orafaq.com/forum/m/160947/42768/#msg_160947

  • How to convert date from ccyymm format to mmddyy

    hi,
    How to convert date from ccyymm format to mmddyy

    Please don't multipost. This question has been answered in your first post.
    How to convert date to ccyymm format
    Regards,
    Jo

  • How to convert music from one apple account to another

    how to convert music from one apple account to another

    leilaboxergirl wrote:
    The apple account music you want to transfer >> go to itunes store and log into the apple account that you want music to be put on your ltunes library...sign in then after you sign in then look down on right hand side for the word "Purchased" and those are the accounts songs and you can download them for free.
    Note that this does not change the iTunes account of these songs. This simply adds them to the iTunes library you are using.
    Also note than once you do this, you will have to wait 90 days to redownload any iTunes purchases from any other iTunes account, including the original iTunes account.
    It is possible to transfer itunes music from one account to another!
    No it is not!

  • How to convert prescaled to postscaled values with custom scale?

    Hi,
    Is there any way to convert between prescaled and postscaled values using an arbitrary custom scale (i.e. linear, map, polynomial, or table)? 
    I'm trying to write a driver which allows users to choose an arbitrary (previously defined) custom scale, but I need to know within the program the values which are actually output/input, which means I need a way of determining the max/min values for an arbitrary custom scale based on the known unscaled max/min.  Surely there is a NI-DAQ internal function which accomplishes this task, but there doesn't seem to be a VI for it.
    Any ideas?
    -Lee
    Labview version 9.0f3

    Dustin,
    Thanks again for your suggestion.  I'm sure your example will be useful to others, but I'm afraid it doesn't actually address my question.  I guess I'm not being very clear.
    The point is that I want to keep track of the values currently being sourced on my analog output channels.  In my application, users can specify max and min values for the sources, which may reflect the hardware limits of the device (e.g. +/-10V in my case) or a more constrained set of software limits determined by whatever the channel is driving.  If the user tries to write a value outside this range, it will be coerced and the limiting value will be sourced instead (without generating an error in this case).  It is then this limiting value which should be saved in output memory, rather than the out-of-range value requested, to avoid users believing they have sourced a value they have not.
    If I then allow users to choose a custom scale, then the requested values are given in scaled units, while the device max and min are still unscaled (volts).  This means I need a way to convert the unscaled limits to scaled limits based on an arbitrary custom scale in order to accomplish the procedure described above.  I have attached an example VI that handles linear scales only.  Obviously this could be extended by adding a case structure to handle the other types of scales, but it just seemed a bit silly to me that there is no VI to accomplish this scaling already, given that it most certainly happens inside the various NI-DAQmx routines that accept custom scales.
    Much of this would also be easier if it were possible to 'read back' the currently sourced value from DAQ output channels, so I wouldn't have to fake it by keeping a local memory of them, but that is a separate issue.
    -Lee 
    Attachments:
    ApplyScaledLimitsExample.vi ‏23 KB

  • How to find batches from characteristics value

    Dear Team
    How to find no. of batches from characteristic value used in that batch class?
    B.R.
    Ramesh kumar

    Hi Ramesh,
    Please try with BMBC.
    For characteristics value you can set it from customizing->Batch where used list.
    Regards,
    Krishnendu.

  • How to convert colon separated column values in multiple rows in report

    Hi All,
    I want to display colon separated values from a column, in a multi row in report.
    For example i have a column1 in a table with value 'A:B:C' , column2 has value '1'.
    i want to show in a report three rows using these two columns like
    column1 column2
    A 1
    B 1
    C 1

    Here's one way:
    SQL> create table test (col1 varchar2(20), col2 number);
    Table created.
    SQL> insert all
      2    into test values ('A:B:C', 1)
      3    into test values ('Dg:Ezs', 2)
      4  select * from dual;
    2 rows created.
    SQL> select
      2    t.col2,
      3    regexp_substr(t.col1, '\w+', 1, t2.column_value) c1
      4  from test t,
      5    table(cast(multiset(select level
      6                        from dual
      7                        connect by level <= length(t.col1) - length(replace(t.col1, ':', '')) + 1
      8                       ) as sys.odcinumberlist )) t2
      9  order by 2, 1;
          COL2 C1
             1 A
             1 B
             1 C
             2 Dg
             2 Ezs
    SQL>Edited by: Littlefoot on Jan 31, 2012 10:13 AM

  • How to read  data from a value attribute

    I  have a context node which has some value attributes.the value to these attributes have been set in their setter/getter methods . How do i read data in the do_prepare_output ,because this attribute does not get recognised when i do get_property_as_string( iv_attr_name = 'XYZ' ). Please let me know how this can be done .

    Hi Shakuntala,
    Value attributes are only for display purpose.
    Check where is the value for the Value Attribute you are trying to read getting stored in SET method.
    For example, Employee Responsible has a value attribute RESPONSIBLE_NAME_UI on the screen
    but in turn the value gets stored in the 'RESPONSIBLE_NAME' and 'RESPONSIBLE_TEXT'.
    You can get these fields in SET method.
    Now when you want to read, use the logic available in GET method for the value attribute like this
      value = me->get_responsible_text( attribute_path = '//TRADE/RESPONSIBLE_TEXT' ).
      IF value IS INITIAL.
        value = me->get_responsible_name( attribute_path = '//TRADE/RESPONSIBLE_NAME' ).
      ENDIF.
    Regards,
    Masood Imrani S.

  • How to set SORT_AREA_RETAINED_SIZE from a value to NOT SET in spfile

    Hi,
    I am trying to change the SORT_AREA_RETAINED_SIZE=148374 to NOT SET in spfile using the following command:
    alter system set SORT_AREA_RETAINED_SIZE='' scope=spfile;
    but couldn't get this?
    is there any other way except changing manually in pfile and change to spfile?

    Did you restart the instance after you make the change? The values from the spfile are read only at instance startup.

  • How to convert date from "yyyymmdd" to "MM/DD/YYYY" format

    1. I have one BLDAT field in my internal table.
       its getting updated from input file.
    2. The value in the input file is like yyyymmdd.
       So the internal table field is filled like this
       "YYYYMMDD".
    3. After this,I have to compare this internal table  
       field with BSAD table.
    4. The BLDAT field in BSAD table is in the format of 
       "MM/DD/YYYY".
    5. the BLDAT field is having diff format in internal  table and BSAD table.So I am unable to check this value.
    How to convert it as like the BSAD table format."MM/DD/YYYY" format.
    Thanks in advance!!

    Using the WRITE statement
      data: gd_date(10).  "field to store output date
    * Converts date from 20020901 to 09.01.2002
      write sy-datum to gd_date mm/dd/yyyy.
    OR u can
    CONCATENATE gd_date+4(2) gd_date+6(2) gd_date+0(4)
    into gd_date seperated by '/' .
    Hope this helps.
    Kindly reward points and close the thread for the
    answer which helped u OR get back with queries.

  • How to convert .txt (from applicaiton server) to internal table

    hi all
    i want to convert .txt (from applicaiton server) to internal table , im getting the contents in the itab, but im not able to remove '#',
    can anybaody help me?
    Thanks.

    The # is a representation of the tab, so you need to do something like this.
    report zrich_0001.
    data: str type string.
    data: begin of itab occurs 0,
          fld1(10) type c,
          fld2(10) type c,
          fld3(10) type c,
          end   of itab.
    data:
          dsn(100) value '/usr/sap/TST/sys/test.txt'.
    constants:
        con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    clear itab.  refresh itab.
    * Read the data.
    open dataset dsn for input in binary mode.
    do.
      read dataset dsn into str.
      if sy-subrc = 0.
       split str at con_Tab into itab-fld1 itab-fld2 itab-fld3.
        append itab.
      else.
        exit.
      endif.
    enddo.
    close dataset dsn.
    Loop at itab.
      write:/ itab-fld1, itab-fld2, itab-fld3.
    endloop.
    Regards,
    RIch Heilman

  • BEX F4 help values from posted values in Info Provider not from Master data

    We have an info object called Archival purpose and it is display attribute of Master data info object Archive Number. Both Info objects are used in a cube. Posted values in cube have only two value for info object Archival purose which is "EXCOM" and "EA".
    But when we do the F4 in the bex query, we see some other F4 values. Although Master data is having other entries but we have defined in the bex property of both the info object to read the f4 value from the posted values in the info provioder.
    Please suggest how to get values in bex F4 help only from posted values in info provider and not from the master data.
    Thanks

    Hi,
    You don't need to change the Infoobject definition as it will become global and it will be applicable for whereever this infoobject is used.  Instead you can manage this setting for this particular Infoprovider.
    Go to RSA1 and double click on your infoprovider used for this query, go to change mode. From the right hand side dimension tree search for the Infoobject for which you want to maintain this property. If it is navigation attribute then you can search it in navigation attribute tree.
    Once you find the infoobject right click and from context menu choose the first  option "InfoObject specific properties". In the next popup in the last option about F4 values for filter you can select the option, "Only values from Infoprovider".
    Regards,
    Durgesh.

  • Select-options - select multiple values from personal value list

    Hi experts,
    In my application, I am using select-options. I select the values required from the search help into the personal value list . I want to copy these values from the personal value list into my ranges table. Do I have to copy them one row at a time. Is there any way to select the values directly into the ranges table of the select-options field?
    Regards,
    Abdullah.

    Boy, this is something we're struggling with too. So we'd like to hear others' ideas on this also.
    thank you,
    iggy

  • HT204382 how to convert movies from flip for use in final cut pro

    How do you convert movies from a Flip video camera for use in final cut pro?

    DVDs are in a socalled delivery format (mpeg2), which isn't meant and made for any processing as editing...
    in recommended order, choose one of the following tools/workarounds:
    DVDxDV (free trial, 25$, Pro: 90$)
    Apple mpeg2 plugin (19$) + Streamclip (free)
    VisualHub (23.32$)
    Drop2DV (free)
    Cinematize >60$
    Mpeg2Works >25$ + Apple plug-in
    Toast 6/7/8 allows converting to dv/insert dvd, hit apple-k
    connect a miniDV Camcorder with analogue input to a DVD-player and transfer disk to tape/use as converter
    http://danslagle.com/mac/iMovie/tips_tricks/6010.shtml
    http://danslagle.com/mac/iMovie/tips_tricks/6018.shtml
    http://karsten.schluter.googlepages.com/convertdvdstodvs
    (advice is for imports to iM... )
    none of these methods or tools override copy protection/DRM mechanisms.. advice on 'ripping' is a violation of the ToU of this board ..
    +be nice to copy rights ...+

Maybe you are looking for

  • SharePoint 2013 (Foundation) and Outlook Web Access WebPart (OWAPart)

    Hi, I've read most MSDN forum threads relating to this topic, however, I haven't seen my issue anywhere. We're running SP 2013 foundation, and I want to use the Outlook Web Access web part.  I followed the steps outlined here: http://blogs.msdn.com/b

  • Macbook pro retina japan change

    Hello, 5 days ago I bought a Macbook pro retina 13 inch and I just check that apple release a new one model for the same price, so it will be possible to change for the new one model if I am in the 14 days of refund? I bought in the Ginza apple store

  • Can't change filetype extension!

    I am having difficulty changing the filetype extension for a couple of files. Basically I'm sharing a folder of files via SMB with a media player. The files in question are jpg but the media player requires the extension .tbn to display then as thumb

  • URL with Dynamic Content

    Hi WD Gurus, after executing a BAPI I get back a filename and an URL (generally it is an excel file) The url is something like this: "HTTP://srm.customerX.com:8000/sap/ebp/docserver/110/ScreenTemplateChanges.xls?attkget&KpId=26DE385E3F454BBA7B7244280

  • AVCHD will not load into Log & transfer

    Just got an AVCHD  card and tried to import via log and transfer. Keep getting the error that it is "unsupported media" and "unknown file structure" This is a newer system (last 6mos) intel imac FCP V7 so it should import.  Okay file structure looks