Conversion decimal to exponential format

Hi to all,
     I have a small requirement in  PM module. In IK11 tcode we r giving the measurement point reading in decimal point.But in database table it will store in exponential format.
For example. If we will give measuremetn point reading - 55.0 (in measurement point category temperature). But it will save in database table like 3.4814999999999998E+02.But i dont know which function module will use to convert decimal to exponential format.Please tel me which function module will use......
Regards
Geetha

Hi
Pass the data in the decimal format the system will internally convert it Floating point format
or try this out
data : var(4) type p decimals 2 value '10.22',
       float type f.
       float = var.
       write float.
regards
Ramchander Rao.K

Similar Messages

  • Cells in Excel file output formatted to exponential format

    Hi ABAPers,
    I have generated an excel file using the FM, ' SO_NEW_DOCUMENT_ATT_SEND_API1 ' and cells in certain column are diplayed in the exponential format in excel. I had converted all the data to be populated into character type.
    As you may see, the Invoice Number ( vbeln CHAR 10 ) and the EAN Code ( ean11 CHAR 18 ) are in exponential format.
    But, as I expanded the cells, Invoice Number was displayed correctly but not EAN Code.
    Invoice Number - 5090002040
    EAN Code - 4011100191006
    Is it because EAN Code is only 13 Characters long when it was supposed to be 18?
    Please suggest any alternate logic for the EAN Code.
    Thanks.
    Arun G Nair

    Hello Alex,
    No spaces or apostrophes or inverted commas are to be added to the EAN Code ( 4011100191006 ).
    I have tried fetching the value and storing it into a string and then assigning that string to ean code variable but didn't work out. At the moment it is being stored in a variable of character datatype.
    As you may see, it works fine for Invoice Number, then why is it NOT working for EAN Code. They have the same character datatypes and are also asigned to variables of similar datatypes.

  • How To Get rid of Exponential format in datagridview when the number is very large

    When the number is very large like :290754232, I got 2.907542E +08. in datagridview cell
    I using vb.net , framework 2.0.
    how can I get rid of this format?
    Thanks in advance

    should I change the type of this column to integer or long ?
    The datagridview is binded to binding source and a list ( Of).
    Mike,
    I'll show you an example that shows the correct way to do this and a another way if you're stuck using strings in exponential format. The latter being the "hack way" I spoke about Friday. I don't like it, it's dangerous, but I'll show both anyway.
    In this example, I'm using Int64 because I don't know the range of yours. If your never exceeds Int32 then use that one instead.
    First, I have a DataGridView with three columns. I've populated the data just by creating longs starting with the maximum value in reverse order for 100 rows:
    The way that I created the data is itself not a great way (there's no encapsulation), but for this example "it'll do".
    Notice though that the third column (right-most column) isn't formatted at all. I commented out the part that does that so that I could then explain what I'm doing. If it works, it should look like the first column.
    The first column represents an actual Int64 and when I show the code, you can see how I'm formatting that using the DGV's DefaultCellStyle.Format property. That's how it SHOULD be done.
    The third column though is just a string and because that string contains a letter in it, Long.TryParse will NOT work. This is where the "hack" part comes in - and it's dangerous, but if you have no other option then ...
    You can see that now the third column matches the first column. Now the code:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    With DataGridView1
    .AllowUserToAddRows = False
    .AllowUserToDeleteRows = False
    .AllowUserToOrderColumns = False
    .AllowUserToResizeRows = False
    .AlternatingRowsDefaultCellStyle.BackColor = Color.Aquamarine
    .ReadOnly = True
    .SelectionMode = DataGridViewSelectionMode.FullRowSelect
    .MultiSelect = False
    .RowHeadersVisible = False
    .RowTemplate.Height = 30
    .EnableHeadersVisualStyles = False
    With .ColumnHeadersDefaultCellStyle
    .Font = New Font("Tahoma", 9, FontStyle.Bold)
    .BackColor = Color.LightGreen
    .WrapMode = DataGridViewTriState.True
    .Alignment = DataGridViewContentAlignment.MiddleCenter
    End With
    .ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing
    .ColumnHeadersHeight = 50
    .DataSource = Nothing
    .Enabled = False
    End With
    CreateData()
    End Sub
    Private Sub CreateData()
    Dim longList As New List(Of Long)
    For l As Long = Long.MaxValue To 0 Step -1
    longList.Add(l)
    If longList.Count = 100 Then
    Exit For
    End If
    Next
    Dim stringList As New List(Of String)
    For Each l As Long In longList
    stringList.Add(l.ToString("e18"))
    Next
    Dim dt As New DataTable
    Dim column As New DataColumn
    With column
    .DataType = System.Type.GetType("System.Int64")
    .ColumnName = "Actual Long Value (Shown Formated)"
    dt.Columns.Add(column)
    End With
    column = New DataColumn
    With column
    .DataType = System.Type.GetType("System.String")
    .ColumnName = "String Equivalent"
    dt.Columns.Add(column)
    End With
    column = New DataColumn
    With column
    .DataType = System.Type.GetType("System.String")
    .ColumnName = "Formated String Equivalent"
    dt.Columns.Add(column)
    End With
    Dim row As DataRow
    For i As Integer = 0 To longList.Count - 1
    row = dt.NewRow
    row("Actual Long Value (Shown Formated)") = longList(i)
    row("String Equivalent") = stringList(i)
    row("Formated String Equivalent") = stringList(i)
    dt.Rows.Add(row)
    Next
    Dim bs As New BindingSource
    bs.DataSource = dt
    BindingNavigator1.BindingSource = bs
    DataGridView1.DataSource = bs
    With DataGridView1
    With .Columns(0)
    .DefaultCellStyle.Format = "n0"
    .Width = 150
    End With
    .Columns(1).Width = 170
    .Columns(2).AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
    .Enabled = True
    End With
    End Sub
    ' The following is what I commented
    ' out for the first screenshot. ONLY
    ' do this if there is absolutely no
    ' other way though - the following
    ' casting operation is NOT ADVISABLE!
    Private Sub DataGridView1_CellFormatting(ByVal sender As Object, _
    ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) _
    Handles DataGridView1.CellFormatting
    If e.ColumnIndex = 2 AndAlso e.Value.ToString IsNot Nothing Then
    ' NOTE! The following is dangerous!
    ' I'm going to use coercion to force the
    ' string into a type long. TryParse will
    ' NOT work here. This can easily throw an
    ' exception if the string cannot be cast
    ' to a type long. I'm "depending on" the
    ' the string to cast. At the very least
    ' you might put this in a Try/Catch but
    ' that won't stop it from failing (if
    ' it doesn't work).
    Dim actualValue As Long = CType(e.Value.ToString, Long)
    Dim formattedValue As String = actualValue.ToString("n0")
    e.Value = formattedValue
    End If
    End Sub
    End Class
    Like I said, only use that hack way if there's no other option!
    I hope it helps. :)
    Still lost in code, just at a little higher level.

  • How to set exponential format for a cell?

    Hello! Can someone advise how to set exponential format for a cell in Numbers?

    Hi Alejandro,
    If you mean 1000 as 1E+03
    Format Panel > Cell > Data Format > Scientific
    Regards,
    Ian.

  • Number to exponential format in mapping

    Hi Experts,
    I want to convert number to exponential format. (Example number 254 to 2.5400000000E+01), is this possible using FormatNumber function??? if not can you anyone provide me UDF for this.

    Yes. You can use number format function.
    http://wiki.sdn.sap.com/wiki/display/XI/StandardFunctionsinPI7.0
    http://wiki.sdn.sap.com/wiki/display/HOME/MessageMappingFormat+Number
    http://download.oracle.com/javase/1.3/docs/api/java/text/DecimalFormat.html
    Refer this if you want to acheive this using udf-
    http://www.exampledepot.com/egs/java.text/FormatNumExp.html

  • Conversion of a specific format with Audition

    Hello
    I'm in love with Audition 3 because it meets my pc requirement, while as CS 5.5 want a lil big pc requirement
    but any ways here is my real question
    how can i convert an Audio file in following fomrat using Audition
    Uploaded file should be wave format(*.wav), 8bit,8kHz, A-LAW Mono
    i tried Audacity, it works fine but after company settles the tune on mobile, its just noise, nothing else!
    so i would like you people to help me please. (i trust Audition more because its paid & trusted too)
    Regards.

    i want to know conversion of MP3 (320kbps or 128kbps) To wave format(*.wav), 8bit,8kHz, A-LAW Mono
    how can i do that with adobe audition 3
    Thanks

  • Conversion of one date format to another format..

    Hi all..
    Please help me out in this...
    I want to convert the following ...
    Fri May 25 17:49:34 2007 to[b] 2007-05-25 17:49:34
    Help me out of this ...
    Thanks in Advance .....

    Fri May 25 17:49:34 2007 to[b] 2007-05-25 17:49:34 If what you have already is of type java.util.Date, then just use formatting:
    new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(yourDate)If it's a String only, then you need to do conversion:
    SimpleDateFormat from = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy");
    SimpleDateFormat to = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    to.format(from.parse(yourString))

  • Altering number of decimal places of formatted number

    Using http://java.sun.com/docs/books/tutorial/i18n/format/numberFormat.html I have worked out how to format a number, almost. When I follow the example in this tutorial that shows how format a double, it always rounds it to 3 decimal places. How do I alter the number of decimal places that this formatting procedure outputs? I used the US as the locale and English as the language. I am assuming that if these parameters are chosen, 3 decimal places is the output. Is this assumption correct?

    Look at the next chapter :)
    http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html

  • Removing Exponential Format

    hi, I am trying to take a double value which is 9 digits long and trying to
    display it on my screen . but i see it in an exp form. can anyone please suggest me how to solve this problem.
    thanks

         private static DecimalFormat[] floatFormatters = new DecimalFormat[]{
              new DecimalFormat ("#,##0"),
              new DecimalFormat ("#,##0.0"),
              new DecimalFormat ("#,##0.00"),
              new DecimalFormat ("#,##0.000"),
              new DecimalFormat ("#,##0.0000"),
              new DecimalFormat ("#,##0.00000")
          * Formats the passed floating point value into a comma separated
          * string with the passed number of decimal places (ie. 1,000.000).
          * It forces non-scientific notation.
          * @param value the value to format
          * @param numDecimals the number of decimal places to display
          * @return the value formatted into a String
         public static String formatFloatNonSci(double value, int numDecimals) {
              if (numDecimals < floatFormatters.length) {
                   return floatFormatters[numDecimals].format(value);
              else
                   StringBuilder format = new StringBuilder ("#,##0.0");
                   for (int i=2; i<=numDecimals; i++) {
                        format.append('#');
                   return new DecimalFormat(format.toString()).format(value);
         }

  • Decimal to Time format

    Hi All,
    I have one key figure which is in decimal format and it is displaying as the same in the query.
    But my requirement is to show in hours and mins.
    Ex:  if 1.33 then it should show 1hr 20m or 1.20hr
           if 2 then it should show 2hr
           if 3.5 then it should show 3hr30mins
           if .50 then it should show 30mins
    Plesae help me out in solving this.
    Thanks

    You can write a VB macro code at BEx analyzer level to display the output in that format.

  • Conversion of various files formats to 3gp

    Hi,
    I am working on acode whic has a requirement to convert files from various formats (mov,mp4,avi,rm,flv) to 3gp and wma, wav, ra to mp3.
    1)Will JMF support all these conversion basically want to know about the 3gp support by the JMF framework.
    2)The code is supposed to be on the server side.Which would be a better in performance 1)insatlling native convertors like FFMPEG and calling command line calls from Java cod or 2)Using JMF
    Thank in Advance
    Regards,
    Vineeth

    See this link:
    http://www.jsresources.org/examples/audio_conversion.html

  • Losing decimal entirely when formatting as currency

    Using the following code:
    NumberFormat currencyFormat = NumberFormat.getCurrencyInstance();
    Double dblAmount = new Double(stringAmount);
    String fmtAmount = currencyFormat.format(dblAmount);The resulting display amount sometimes shows up without its decimal, e.g. $50.00 shows as $5000.
    Any ideas as to why this happens? TIA.
    Greg

    ggregd wrote:
    I haven't been able to reproduce it, it happens at one site where the app is deployed. I wonder what the default locale is for that site. Could that be affecting your expected results?

  • Decimal 4 places format

    Hi,
    i have data in 4 decimal place format in oracle when when it create excel file using UTL_file, it shows only 2 decimal.client want to see in 4 digit always.
    i have used following format.
    v_cost_pt:= to_char(rec_cpp.cost / rec_cpp.points,'$9990D9999');
    it gives
    $0.0050
    while in excel it shows
    $0.00thanks
    sp

    Sandy310 wrote:
    It is fine in Oracle but when UTL_File a file in excel with .csv format.
    that file shows only two digits after decimal. Oracle is outputting a CSV with four decimal places
    Excel Sheet created by UTL_FILEThe Excel sheet is not created by UTL_FILE, UTL_FILE creates the CSV, the Excel sheet is created by Excel
    >
    is there way in oracle to show all four decimal place in excel.
    This makes no sense. There is a way to show four decimal places in Oracle, you have shown it.
    If you want to show four decimal places in Excel you need to format it to show four decimal places in Excel.

  • ASCII Repsentation of hexa decimal to jpeg format

    Hi
    my requirement is to convert a file which contains hexa decimal code , i want to convert into a jpeg file
    can anyone suggest me how i can approach this

    Convert the data to RAW format and then output the RAW (probably via a BLOB datatype) to a file...
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t AS (select '424DB6050000000000003E00000028000000C3000000' as hx from dual)
      2  -- END OF TEST DATA
      3  SELECT hextoraw(hx), dump(hextoraw(hx))
      4* from t
      5  /
    HEXTORAW(HX)                                 DUMP(HEXTORAW(HX))
    424DB6050000000000003E00000028000000C3000000 Typ=23 Len=22: 66,77,182,5,0,0,0,0,0,0,62,0,0,0,40,0,0,0,195,0,0,0
    SQL>Note: HexToRaw has a limit on the input size (4000 character I think) so you'll have to do it in chunks.

  • Quicktime conversion to Window wmf format

    I have a quicktime file that I need to convert to a windows wmf (or avi) format for placement on a website. The quicktime file is output from Final Cut Pro using the compressor -- problem is that I need to crop the resulting quicktime file to an unusual aspect ratio, greatly reduce the size (pixels by pixels, not by file size), and convert to a windows "wmf" format. My question basically is -- can anyone recommend a MAC application that will allow me to do all of the above in one pass -- I can't seem to find one that will accomplish all of these tasks -- I thought Cleaner would, but my copy won't let me -- I keep getting error messages such as "no audio track, wmf requires an audio track" or "movie size not supported" -- anyone have any suggestions??? Barring a MAC application, is there anything on the PC side that will???

    David -
    Thanks for the help . . . I have the free flip4mac plug-in installed, but it never dawned on me that the full version would solve my problem . . . I haven't used Cleaner for awhile, but I thought it was supposed to be the heavy hitter in conversion scenarios . . . but it's given me nothing but trouble and no solution . . . thanks again for pointing me in a fruitful direction . . .

Maybe you are looking for

  • How do i connect a Mac Pro desktop to apple tv

    How do i connect a Mac Pro desktop to apple tv

  • Dreaded 90 degree and screen goes black

    I have been putting up with my ibook screen going dim whenever you open the screen to 90 degrees for about five months. However, it is now starting to become really annoying because I have to switch the computer off, close the screen and reboot it in

  • Build issue on Solaris

    Hi, I have developed a webservice using WL 8.1.2 workshop. It builds fine on the Windows environmnt. I use the WlWBuildtask. But, when I try the same on a Solaris box, I get the following error: [Build] webservice/XXX.jws:56:ERROR:Package XXX.XXX con

  • I can't forward a picture after taking it.

    I have to close the camera app and then go to the 'photos', then open the photo and then forward it.  What gives?  I must be missing something super obvious here. **I can't believe this.  I have been dealing with this for months and I just retried it

  • Downloaded QT but it doesn't work

    Hi, My girlfriend was given a new iPod Shuffle so we wanted to watch the guided tour video on Apple's website. It said I had to download QT. I downloaded it, it's there in the Program Files, I rebooted the computer which is a fairly new IBM laptop ru