Representing a number as an exponential in AS2

How can I show an output like for eg.: 0.00003 as 3E-5 OR
3000 as 3E3 ?? in ACTIONSCRIPT 2.0!!!!
If there is no straight forward way to do it..then can some
one post a function which can do it?

I did a quick google search and found an old post by Robert
Penner here:
http://www.actionscript.org/forums/showthread.php3?s=&threadid=2652
The original code is old (I think for version MX) and
wouldn't work on the Math object in flash 8, but with some minor
changes will give you a flexible way to do this:

Similar Messages

  • Material number coming in exponential form

    I excel download when i download 000000003000001336 this as a number, this gets downloaded as 3000001336, but when i download 000003000001336001, it gets downloaded as 3E+12
    how should I remove it.
    regards,
    kushagra

    Hi,
    This is a duplicate thread. Already there is an open thread for this same problem by same author, see here --> Download as excel with matnr as number
    May I ask, why you are duplicating the questions ?

  • Number datatype showing exponential value...

    Hi,
    i hav a column phone_no (datatype number) in some database. why it showing the phone no in this format
    PHONE_NO
    9.873E+09
    plz give me solution.

    Hi,
    It looks like the default width for number columns on your system is 9.
    Are you using SQL*Plus?
    If so, you can change the default to 10 (or more) for your session:
    SET  NUMWIDTH 10or you can specifically format that column:
    COLUMN  phone_no  9999999999

  • AS2- How to display Idoc number in ACK MDN

    Hi ,
    I have an requirement where I have to send the Idoc number in MDN which is sent as an acknowledgement after AS2 system has received an INVOIC Idoc .
    Scenario is like below:
    Part I: R/3(Invoic idoc)>PI>(Idoc xml)AS2 
    R/3 system will send an Idoc to PI. PI will do the mapping and sent to AS2 system with the Idoc number in AS2 subject. This is done by an udf. Part I is working fine. 
    Part II: AS2(MDN)>PI>R/3(ALEAUD Idoc)
    After receiving the idoc xml, AS2 system will send an MDN. This MDN does not contain idoc # which has been processed successfully in the part I. PI is receiving the MDN message like below
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <DtReport xmlns="http://uri.seeburger.com/dt/master/schema">
      <clientId>000</clientId>
      <correlationId>dbeb6ed9-2cbe-11e1-c7f1-000007ec0f66</correlationId>
      <category>DeliveryReport</category>
      <state>SUCCESS</state>
      <finalReport>true</finalReport>
    - <specificData>
      <key>messageID</key>
      <value><[email protected]></value>
      </specificData>
    - <specificData>
      <key>subject</key>
      <value>Message Disposition Notification</value>
      </specificData>
    - <specificData>
      <key>channelID</key>
      <value></value>
      </specificData>
    - <specificData>
      <key>channel</key>
      <value>CC_SND_AS2_MDN_XX_PKI</value>
      </specificData>
    - <specificData>
      <key>originalchannel</key>
      <value>CC_RCV_AS2_XXX_EDI_SEEBURGER_INVOIC_PKI</value>
      </specificData>
    - <specificData>
      <key>to</key>
      <value>PARTY_XX</value>
      </specificData>
    - <specificData>
      <key>from</key>
      <value>PARTY_YY</value>
      </specificData>
    - <reportAttachment refID="dffd66c0-2cbe-11e1-9654-af0c1a5b180a">
      <ns1:objectInfo charset="binary" creation="2011-12-22T17:03:31.116+00:00" location="MEMORY" size="3391" type="INLINE" xmlns:ns1="http://uri.seeburger.com/bisas/message/schema" />
      </reportAttachment>
      </DtReport>
    Can anyone please let me know how can I get the idoc number in received MDN from AS2? So that we can easily identify which has been received the MDN and processed successfully.
    Thanks,
    Arivarasu S

    Hi Prateek,
    This is my code:
    FUNCTION ZPI_PICK_IDOC_NUM .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IN_GUID) TYPE  SXMSMGUID
    *"  EXPORTING
    *"     VALUE(IDOC_NUM) TYPE  EDI_DOCNUM
    *"  EXCEPTIONS
    *"      KEYSTRING_EMPTY
    *"      RETURNFIELD_EMPTY
    *"      KEYFIELD_DOES_NOT_EXIST
    *"      INVALID_DATA
    TYPES: BEGIN OF ty_itab,
           GUID     type SXMSMGUID,
           IDOCNUMBER type  EDI_DOCNUM,
           END OF ty_itab.
    DATA:  it_itab TYPE TABLE OF ty_itab,
           wa_itab type ty_itab.
    SELECT GUID IDOCNUMBER FROM IDXSNDPOR INTO table it_ITAB
             WHERE GUID = IN_GUID.
      IF sy-subrc EQ 0.
        loop at it_itab into wa_itab.
         move wa_itab-IDOCNUMBER to IDOC_NUM.
         exit.
        endloop.
      ELSE.
        RAISE invalid_data.
      ENDIF.
    ENDFUNCTION.
    I guess this is giving one of the exception which I have added in exception tab.
    Thanks,
    Arivarasu

  • Page number, in a table, in footer

    Hello,
    I'm having an issue which I think might be a legitimate bug. Here's the probem:
    • I'm adding the dynamic "page number", into a table, that resides within the footer.
    • When the page number reaches double digits (10, 11, etc), the number displays as two digits, but the spacing is being treated like a single character.
    So, when you hit "10" the zero overlaps any text that comes after the number. You can add extra spaces to make up for this issue, but then the previous, single digit, pages are all messed up. They have way to much spacing now.
    I've tried everything I can think of and still can't get around this issue. Starting a brand new document, removing all formatting, etc. I'm hoping someone has run across this before and knows of a solution, or maybe an update to fix this in Pages (Fingers crossed..haha).
    Any help or comments is appreciated.
    Thanks,
    Josh

    Hi Jerry,
    I've saved a screen shot of my existing working document as well as a brand new blank document to show that it's not my styles that's causing the issue. You will notice that the "10" page number is overlapping the text that follows it. When you highlight the "10" only the "1" get's highlighted, which makes me think it's representing that number incorrectly as a single digit.

  • Why is the number of photos in the Photos app different than the number of photos in iPhoto on the Mac?

    I have an iPhone 4S and a MacBook Air. On the MacBook Air, in iPhoto, the number of photos is 3,563 (this is the number that appears next to the word Photos under library in the left hand pane). When I synch my phone with iTunes, I've selected Synch Photos from iPhoto and the number that follows that line is 3,546 photos. I have checked All Photos, albums, Events, and Faces.
    On my iPhone under Settings, General, About, there are 4,293 Photos shown (the Camera Roll is empty).
    I don't understand why these three numbers are not identical. Anyone know?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • How can I represent a table with JSF ?

    Hi,
    I want to replace my (html) table with a JSF representation..
    I found the tag <h:dataTable>, and this defines <h:column> but there is no <h:row> !!
    There is an attribute rows to represent the number of rows to display, but how can I add these rows ?
    Thank you

    <h:panelGrid columns="2">
    </h:panelGrid>will produce table with 2 columns and if provided, the next 2 columns will appear in the next row and so forth...

  • How can  i  display the Number  instead of  E

    Hello Everyone ;
    I am getting confused. How can i display the Number but the Exponential value is coming as E.
    SQL> select sum(amount_sold) from sales;
    SUM(AMOUNT_SOLD)
    1.1287E+11
    Table details ..
    SQL> desc sales
    Name                                          Null?        Type
    AMOUNT_SOLD NUMBER
    i want to change 1.1287E+11 to "numeric"
    DB : 10.2.0.4
    os : rhel 5.1

    Just a minor correction on an obvious math/responding too fast error: 1.1287E+11 is a 12 digit number. You move the decimal 11 positions to the right which would add 7 zeroes to the value.
    MPOWEL01> l
      1  select length(to_char(1.1287E+11)), to_char(1.1287E+11,'999,999,999,999'), 1.1287E+11 "TEST"
      2* from sys.dual
    MPOWEL01> col TEST format 999999999999
    MPOWEL01> /
    LENGTH(TO_CHAR(1.1287E+11)) TO_CHAR(1.1287E+          TEST
                             12  112,870,000,000  112870000000the problem was that the OP failed to alias the sum result to the formatted column rather than the lenght of the data.
    HTH -- Mark D Powell --

  • In the info bar at the bottom of the iphoto window, why is the number of items different from the total

    In the info bar at the bottom of the iphoto screen, why is the number of items different from the total?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Total number of pages in script

    how do u represent total number of pages in documents,
    2. in need logo ontheright handside of corner how do u do that
    plz explain clearly

    Hi rajesh,
    <b>1. To represent total number of pages in documents use
    &SAPSCRIPT-FORMPAGES&:
    This field contains a number representing the total number of pages of the currently formatted form (any output between START_FORM and END_FORM). The page counter mode (START, INC, HOLD) of the individual pages is ignored.
    2. To have logo ontheright handside of corner
    Basically u have four type of windows
    main , constant , variable and graph
    create a window of type GRAPH
    place the window on right hand corner of u r page
    and place u r image in this window</b>

  • ColumnChart - display number of items per time interval

    I have a collection of objects. Each object has a "time"
    property of type Date.
    I need to display a ColumnChart which shows one column
    representing the number of objects in a time interval. For example
    if I had 5 objects:
    2 have a "time" of 3:00:00
    1 has a "time" of 3:00:12
    2 have a "time" of 3:00:17
    And my time interval should be 10 seconds...then I would have
    to columns one representing 3:00:00 - 3:00:09 and one representing
    3:00:10 - 3:00:19. The first column would have a y-value of 2 and
    the second column would have a y-value of 3.
    Any suggestions on how to do this? Should I maintain a
    Dictionary that maps a time to a count? and bind my chart to that
    Dictionary?

    "anoweb" <[email protected]> wrote in
    message
    news:g93s6o$oca$[email protected]..
    >I have a collection of objects. Each object has a "time"
    property of type
    >Date.
    >
    > I need to display a ColumnChart which shows one column
    representing the
    > number
    > of objects in a time interval. For example if I had 5
    objects:
    > 2 have a "time" of 3:00:00
    > 1 has a "time" of 3:00:12
    > 2 have a "time" of 3:00:17
    >
    > And my time interval should be 10 seconds...then I would
    have to columns
    > one
    > representing 3:00:00 - 3:00:09 and one representing
    3:00:10 - 3:00:19.
    > The
    > first column would have a y-value of 2 and the second
    column would have a
    > y-value of 3.
    >
    > Any suggestions on how to do this? Should I maintain a
    Dictionary that
    > maps a
    > time to a count? and bind my chart to that Dictionary?
    Use a dataFunction.
    HTH;
    Amy

  • Adding logic based on page number

    Hi,
    in my invoice report, i need to add some logic based on page number. My objective is to print a group of 4 lines (OMR Marks) on right hand side of the page. For example, on first page, print 1st line only, on second page, print 2nd line only, on third page, print 1st and 2nd lines only, on 15th page, print all four lines, on 16th page, print lines similar to 1st page i.e. print 1st line only, on 17th pages, print lines similar to 2nd page i.e. print 2nd line only.
    Is there any way to use page number or some other variable that can represent page number in an IF condition? Your help is highly appreciated.
    Regards,
    sanjai misra

    Thanks for your reply.
    I need to print OMR marks in our invoice report and i am not sure how to do it. I will highly appreciate your inputs.
    I have to print OMR mark a per the logic given below
    1. Divide the page number by 15
    2. Based on remainder value, print 4 horizontal lines. For example,
    if remainder is 1 then print only line 1,
    if remainder is 2 then print only line 2.
    if remainder is 3 then print line 1 and line 2.
    If remainder is 4 then print only line 3,
    if remainder is 5 then print line 1 and line 3
    if remainder is 6 then print line 2 and line 3
    if remainder is 7 then print line 1, 2, 3
    if remainder is 8 then print only line 4 and so on
    if remainder is 0 then print all lines i.e. line 1,2,3 and 4.
    Could you please tell me how I could achieve this? If you have some code that you could share, it would be great.
    OR is there some other way to achieve this?
    Thanks,
    sanjai misra

  • (# of bits ) in a number

    I am converting from decimal to binary and I am trying to get the number of bits in this binary number which is called  "Resulting Binary Numer" output in the VI ... How can I get it ?
    Solved!
    Go to Solution.
    Attachments:
    EBV.vi ‏9 KB

    The #Bits control SETS the minimum number of characters in the string.  The string will contain as many more characters as required to represent the number.
    It sounds as though you are trying to determine the length of the minimum string which will display a binary representation of your number.
    If you use a %b format string and check the length of the output string it will tell you the number of characters in the binary string.  You can also format the numeric control or indicator to display in binary, provided the representation is one of the integer data types.
    With your decimal input set to I32 you need to be careful with negative numbers. They all have the same length = 32.
    Lynn
    Attachments:
    EBV.2.vi ‏7 KB

  • Number format, eg CSAP_MAT_BOM_READ

    Hi,
    I hope this forum will be the correct one ...
    I want to get a Bill Of Materials from a remote system, for this I use the Function "CSAP_MAT_BOM_READ" with an RFC-destination.  This works correct, except that the numbers are returned in a different way. 
    In the system I'm using a decimal number is normally given with a comma as separator for the decimal part ; so numbers come in the format 1,000 for representing the number 1. 
    This format is also used in the function, but when the BOM is read with a RFC-Destination, the decimal separator is a point. 
    Is there a way to change a setting that it uses the comma as well ? 
    (The system where the BOM is coming from uses the comma as well, so it isn't the basic setting of the remote system which causes this)
    Thanks,
    Alain

    Solved by correcting the user parameters for this ...
    The RFC-user didn't use the comma ... now he (she? it?) does...

  • Number Formatting Problem

    Below is the output from my JavaBean. I typed in 5.1 for the audio TextField in my user interface and I got a resulting audio value of 0.0 which happens everytime.
    Should I be using a double or a float to represent a number with a decimal point?
    init:
    deps-jar:
    compile-single:
    run-single:
    Cabin Fever, Horreur, 2002, 92 Minutes, Audio 0.0
    BUILD SUCCESSFUL (total time: 0 seconds)
         String audio1 = audioBox.getText();       try {         double audio2 = Double.parseDouble(audio1);       } catch(NumberFormatException nex) {         JFrame fr = new JFrame();         JOptionPane.showMessageDialog(fr, "Entrez un chiffre dans la     bo�te de saisie 'Audio'.",         "Avertissement!",  JOptionPane.WARNING_MESSAGE);       } http://pollscanada.com/screenshot.html

    I would be happy to help you, but I've decided not to
    contribute here anymore because of the pathetic way
    in which this site is being administered.
    Others are still helping, but more may leave if things
    don't improve. May I recommend devshed or javaranch?
    http://www.devshed.com/
    http://www.javaranch.com/

Maybe you are looking for

  • How to increase font size in acrobat pro 10

    how do I increase the font size in Acrobat Professional 10 in a pdf file that is downloaded from the internet?

  • Problem opening pdf's with one user

    Hello, We deployed adobe reader X on a terminal server 2008 with about 10 users, which login directly via an rdp session (no broker). With one user, we have the problem that when she tries to open a pdf (either directly, in a browser, from outlook, w

  • Adobe Flash Islands + Web Dynpro Java - CE 7.1 EHP1

    Hi All,          I am currently working on flash islands in web dynpro java(CE 7.1 EHP1  Trail version). i have done some sample projects in Flex Builder and using the complied(Flex Complier 2.0) SWF file, i was able to do data transfer between web d

  • BUG 2.1 - ARW (Sony Raw) no photos found error during Auto Import

    BUG 2.1 - ARW (Sony Raw) no photos found error during Auto Import I've seen this issue since beta1. The issue seems to be related to a camera setting that stores the files in folders by date. The Folder structure becomes drive>DCMI>10202008>image.ARW

  • I can't cancel my photoshop membership.

    I can't cancel my photoshop membership. I've tried everything has been sad on the webpage. There is no cancel button or something like that. How will I cancel my photoshop membership?