Large Numbers in Table

I am doing a project where I have to put large numbers in a table. It keeps putting the numbers into scientific notation. How do I stop this?

Click in the cells and change the Cell > Data Format > to Number not Scientific or Automatic
Peter

Similar Messages

  • Exporting large numbers of tables as sysdba

    Hi all,
    I have several hundred tables that I need to export from our Oracle 10g production database and import to test database environment. I cannot get export to work using sys as sysdba below:
    exp 'sys/password@DB as sysdba\' direct=Y tables=t1, t2, t3 file=exp.dmp log=export.log
    LRM-00108: invalid positional parameter value 'as'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    How can I get my export to work? Thanks!

    1.- if you just TRUNCATE the table oracle will see that the table exists and it will fail to load that table, oracle will skip this table and continue with the next one. You can include IGNORE=Y to ignore the error and load the data. ( be careful because is not going to show other errors)
    2.- See example.
    This is on windows but is similar in Linux
    D:\>imp 'sys/oracle@xe as sysdba' file=EXPDAT.DMP log=import.log tables=test_tbl
    2 fromuser=denunez touser=denunez
    Import: Release 10.2.0.1.0 - Production on Tue May 2 11:25:30 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Productio
    n
    Export file created by EXPORT:V10.02.01 via direct path
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    . importing DENUNEZ's objects into DENUNEZ
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLE "TEST_TBL2" ("NOROW" NUMBER, "DATA1" NUMBER, "DATA2" NUMBER)  "
    "PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELIS"
    "TS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)                    LOGGING NOCO"
    "MPRESS"
    Import terminated successfully with warnings.
    D:\>imp 'sys/oracle@xe as sysdba' file=EXPDAT.DMP log=import.log tables=test_tbl
    2 fromuser=denunez touser=denunez ignore=y
    Import: Release 10.2.0.1.0 - Production on Tue May 2 11:26:20 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Productio
    n
    Export file created by EXPORT:V10.02.01 via direct path
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    . importing DENUNEZ's objects into DENUNEZ
    . . importing table                    "TEST_TBL2"         20 rows imported
    Import terminated successfully without warnings.

  • Handling tables with large numbers of fields

    Hi
    What is the best practice to deal with tables having large numbers of fields? Ideally, I would like to create folders under a Presentation Table and group fields into folders (and leave fields that may be needed rarely in a folder named 'Other Information').
    Is there a way to do this in Oracle BI? Any alternatives?
    Thanks

    Answering my own question:
    http://oraclebizint.wordpress.com/2008/01/31/oracle-bi-ee-10133-nesting-folders-in-presentation-layer-and-answers/
    This is definitely a working solution (creating multiple tables and entering '->' in their description in order for them to act as subfolders). Definitely not intuitive and extremely ugly, especially since reordering tables and columns isn't possible (or is it? in another non-obvious way? )
    Anyway it seems we have to live with this.

  • Factorial of Large Numbers

    Hi,
    I want to calculate factorials of very large numbers. However numbers greater than 83 do not produce the actual results. The below function is the one that I use
    create or replace function FN_FACTORIAL(p_num IN INTEGER)
    RETURN NUMBER
    AS
    p_fact NUMBER :=1;
    i INTEGER;
    BEGIN
         if(p_num = 0)
         then
              return 1;
         else
              for i in 1..p_num
              loop
              p_fact := p_fact*i;
              end loop;
         end if;
         return p_fact;
    END;
    I know the number data type exceeds its precision and hence it does not work. Can you give me a work around. I cannot use BINARY_INTEGER or BINARY_FLOAT as well since I use Oracle 10g.
    Thank you in advance.
    Regards,
    Prithwish.

    Ok. Here is the problem that I am facing. Below is my Oracle table which contains population sizes. What I am trying to do is generate a table with sample size from the population using hyper geometric rule. The output would generate sample sizes from the following table to a different table. I want to calculate the hyper geometric powers from 1 to population size for each field and then lookup the samples from the corresponding power generated. below is the output
    Col1
    Col2
    Col3
    200
    100
    200
    120
    200
    40
    50
    30
    20
    25
    56
    114
    Sample Output for column 1 row 1 of value 200:
    Col1
    Col2
    1
    0.9982
    2
    0.9976
    200
    0.9143
    I have a fixed power of 0.9976 which I have to lookup. Then I would require the value 2 placed at the first row of my new table. Similar process follows for all the data. So basically I require the hyper geometric function done in PL/SQL.
    Let me know if you need further inputs to the problem.
    Thanks

  • Is there a way to delete large numbers of emails all at once?

    I receive large numbers of emails because of the discussion lists I'm on, but sometimes I need to delete
    most of them for lack of time.  There can be over 500 in a couple of days.  I'd like to be able to do one simple
    thing that allows me to delete all of this old mail at a time.  Is there such a way?
    Scotty

    If your email account supports it, you can tap the Trash Icon, Tap Edit and the Delete option may let you delete all. I have a Comcast mail account that allows me to do this. I also have two AOL accounts that do not support it.
    Try your mail account and see if the Delete All option comes up at the bottom of the window. Account
    Name>Trash>Edit and look in the lower left corner of the window.

  • Business Partner records with large numbers of addresses -- Move-in issue

    Friends,
    Our recent CCS implementation (ECC6.0ehp3 & CRM2007) included the creation of some Business Partner records with large numbers of addresses.  Most of these are associated with housing authorities, large developers and large apartment complex owners.  Some of the Business Partners have over 1000 address records and one particular BP has over 6000 addresses that were migrated from our Legacy System.  We are experiencing very long run times to try to execute move in's and move out's due to the system reading the volume of addresses attached to the Business Partner.  In many cases, the system simply times out before it can execute the transaction.  SAP's suggestion is that we run a BAPI to cleanse the addresses and also to implement a BADI to prevent the creation of excess addresses. 
    Two questions surrounding the implementation of this code.  Will the BAPI to cleanse the addresses, wipe out all address records except for the standard address?  That presents an issue to ensure that the standard address on the BP record is the correct address that we will have identified as the proper mailing address.  Second question is around the BADI to prevent the creation of excess addresses.  It looks like this BADI is going to prevent the move in address from updating the standard address on the BP record which in the vast majority of cases is exactly what we would want. 
    Does anyone have any experience with this situation of excess BP addresses and how did you handle the manipulation and cleansing of the data and how do you maintain it going forward?
    Our solution is ECC6.0Ehp3 with CRM2007...latest patch level
    Specifically, SAP suggested we apply/review these notes:
    Note 1249787 - Performance problem during move-in with huge addresses
    **applied this ....did not help
    Note 861528 - Performance in move-in for partner w/ large no of addresses
    **older ISU4.7 note
    Directly from our SAP message:
    use the function module
    BAPI_BUPA_ADDRESS_REMOVE or run BAPI_ISUPARTNER_CHANGE to delete
    unnecessary business partner addresses.
    Use BAdI ISU_MOVEIN_CUSTOMIZE to avoid the creation of unnecessary
    business partner addresses (cf. note 706686) in the future for that
    business partner.
    Note 706686 - Move-in: Avoid unnecessary business partner addresses
    Does anyone have any suggestions and have you used above notes/FMs to resolve something like this?
    Thanks,
    Nick

    Nick:
    One thing to understand is that the badi and bapi are just the tools or mechanisms that will enable you to fix this situation.  You or your development team will need to define the rules under which these tools are used.  Lets take them one at a time.
    BAPI - the bapi for business partner address maintenance.  It would seem that you need to create a program which first read the partners and the addresses assigned to them and then compares these addresses to each other to find duplicate addresses.  These duplicates then can be removed provided they are not used elsewhere in the system (i.e. contract account).
    BADI - the badi for business partner address maintenance.  Here you would need to identify the particular scenarios where addresses should not be copied.  I would expect that most move-ins would meet the criteria of adding the address and changing the standard address.  But for some, i.e. landlords or housing complexes, you might not add an address because it already exists for the business partner, and you might not change the standard address because those accounts do not fall under that scenario.  This will take some thinking and design to ensure that the address add/change functions are executed under the right circumstances.
    regards,
    bill.

  • Please add the ability to add multiple folders to the assets folder in order to better organize large numbers of files.

    Please add the ability to add multiple folders to the assets folder in order to better organize large numbers of files.

    Hello KDLadage
    Thank you for your recommendation. I understand the challenges of managing large numbers of files on the My Files page. I also understand the need to preserve project files.
    Perhaps a compromise would be to create an Archive tab under My Files. Previous versions and retired project files could then be automatically moved into this holding area when a new version is published, thus preserving the files in a separate area that is still accessible to the author.
    I will submit this suggestion to our product management team to consider as a future enhancement.

  • Large numbers calculation problem (determinant calculation)

    Hello experts,
    I have really interesting problem. I am calculatig determinant in ABAP with a large numbers (in CRM 5.0 system).
    My formula for determinant is :
    FORM calculate_determinant USING    det      TYPE zsppo_determinant
                               CHANGING value    TYPE f .
      value =
        (  1 * det-a11 * det-a22 * det-a33 * det-a44 ) + ( -1 * det-a11 * det-a22 * det-a34 * det-a43 ) +
        ( -1 * det-a11 * det-a23 * det-a32 * det-a44 ) + (  1 * det-a11 * det-a23 * det-a34 * det-a42 ) +
        ( -1 * det-a11 * det-a24 * det-a33 * det-a42 ) + (  1 * det-a11 * det-a24 * det-a32 * det-a43 ) +
        ( -1 * det-a12 * det-a21 * det-a33 * det-a44 ) + (  1 * det-a12 * det-a21 * det-a34 * det-a43 ) +
        (  1 * det-a12 * det-a23 * det-a31 * det-a44 ) + ( -1 * det-a12 * det-a23 * det-a34 * det-a41 ) +
        ( -1 * det-a12 * det-a24 * det-a31 * det-a43 ) + (  1 * det-a12 * det-a24 * det-a33 * det-a41 ) +
        (  1 * det-a13 * det-a21 * det-a32 * det-a44 ) + ( -1 * det-a13 * det-a21 * det-a34 * det-a42 ) +
        ( -1 * det-a13 * det-a22 * det-a31 * det-a44 ) + (  1 * det-a13 * det-a22 * det-a34 * det-a41 ) +
        (  1 * det-a13 * det-a24 * det-a31 * det-a42 ) + ( -1 * det-a13 * det-a24 * det-a32 * det-a41 ) +
        ( -1 * det-a14 * det-a21 * det-a32 * det-a43 ) + (  1 * det-a14 * det-a21 * det-a33 * det-a42 ) +
        (  1 * det-a14 * det-a22 * det-a31 * det-a43 ) + ( -1 * det-a14 * det-a22 * det-a33 * det-a41 ) +
        ( -1 * det-a14 * det-a23 * det-a31 * det-a42 ) + (  1 * det-a14 * det-a23 * det-a32 * det-a41 )
    ENDFORM.
    Det values are also f type. Problem is, that for several numbers I got the right values and for another det values I got wrong values... I also try to retype variable value on type p, but without success. Maybe I used wrong types or there is some ABAP rounding of numbers which cause wrong result.
    Any good ideas of solutions. <text removed>. Thanks for your time.
    Edited by: Matt on Sep 14, 2010 9:17 AM

    Hi Lubos,
    phew! that sounds far from SAP scope, but from Maths' numerical methods. Let's see if I can remember something about my lessons at University...
    - One issue can arise when adding and subtracting terms which are very similar, because the error tends to arise quite fast. Try to add the positive terms on one hand, and the negative terms on the other hand, then subtract one from the other.
    - Please take into account that the determinant value can be significantly close to zero when the condition number of the matrix is low, that is, when the range is 4 but the whole determinant is close to 0. Instead, try a [Singular Value Decomposition|http://en.wikipedia.org/wiki/SVD_(mathematics)] or an [LU decomposition|http://en.wikipedia.org/wiki/LU_decomposition]
    I hope this helps. Kind regards,
    Alvaro

  • How do I delete large numbers of photos on ios7

    How do I delete large numbers of photos from ios7. I haven't got my MacBook with me

    In the Photos.app you can select all photos in a "Moment" at once, by pressing "Select" to the right of the "Moment" name. Then press the Trash icon.
    For example:

  • Store Very Large Numbers

    Hello,
    I am trying to find some info about how to store very large numbers with like 2000 digits or even more and do calculations on them.
    Does anyone have any info or links about this ??
    Thanks.

    BigDecimal?Speaking. What can I do for you?
    :)

  • Very Large Numbers Question

    I am a student with a question about how Java handles very large numbers. Regarding this from our teacher: "...the program produces values that
    are larger than Java can represent and the obvious way to test their size does not
    work. That means that a test that uses >= rather than < won?t work properly, and you
    will have to devise something else..." I am wondering about the semantics of that statement.
    Does Java "know" the number in order to use it in other types of mathematical expressions, or does Java "see" the value only as gibberish?
    I am waiting on a response from the teacher on whether we are allowed to use BigInteger and the like, BTW. As the given program stands, double is used. Thanks for any help understanding this issue!

    You're gonna love this one...
    package forums;
    class IntegerOverflowTesterator
      public static void main(String[] args) {
        int i = Integer.MAX_VALUE -1;
        while (i>0) {
          System.out.println("DEBUG: i="+i);
          i++;
    }You also need to handle the negative case... and that get's nasty real fast... A positive plus/times a positive may overflow, but so might a negative plus a negative.
    This is decent summary of the underlying problem http://mindprod.com/jgloss/gotchas.html#OVERFLOW.
    The POSIX specification also worth reading regarding floating point arithmetic standards... Start here http://en.wikipedia.org/wiki/POSIX I guess... and I suppose the JLS might be worth a look to http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html

  • How to do basic corrections to large numbers of images

    I have to do basic corrections to large numbers of images that will be coming in separate
    batches and which need to be kept in their separate batches. I cant mix them together.
    Do I create a new catalog for each batch? What should I do, if anything with collections and
    what is the fastest way to make basic corrections to hundreds of images? Some of the images
    are similar but many are not.
    Oh, I was also wondering if Lightroom can import through FTP or if I need to download the
    images and then import them.
    Thank you!

    Hi Jim,
    you need to understand what is happening or you can become very frustrated
    That's for sure. I have found countless tutorials on how to do specific things and procedures in Lightroom but I wasnt able to find a macro or aerial view of what it does and how it works. Things like what is a catalog and if it mimics the file structure on the disk, if and when to have more than one catalog, where the catalog and collections files are stored and how to back them up, how to re-synchronize the catalog if you move things around with finder/explorer, etc.
    I'm slowly piecing those things together by thinking and working backwards from all the more lower level tutorials. I keep thinking I want a "Missing manual" for moving from Finder and Bridge to Lightroom.
    For instance, are you aware that in its default state Lightroom does not write any changes to the files?
    And are you aware of how to change that? Are you aware that if you make that change there will be XMP files for every raw file that you worked on?
    I knew that Lightroom doesn't  normally save changes to the image files, it basically stores a history of the adjustments in a separate file and applies them to the original, kind of like adjustment layers in photoshop dont change the background layer. I think I read that if working with a dng file the history of adjustments is saved within the dng image file but I'm not sure about that. The xmp files are the same or similar to the ones that are created in ACR, I believe.
    you really need to have a good working knowledge of the program in order to use it efficiently.
    I dont expect to be very efficient at first. I'm thinking of this experience as on the job training and thanks to all of the internet resources available and people like you I think I'll be able to adapt to Lightroom fairly quickly.
    I looked at the videos that you linked me to. Some of them I had found previously but it was good to view them again. I do that a lot, after I do some work I look back at books or videos I had previously studied and I normally get more out of it the second time.
    Is there a way that you know of to improve a few hundred images more efficiently that selecting the most similar ones for a group adjustment and doing the rest individually? I have images that are under and over exposed, tilted and with various color casts :-(
    I'm thinking about going to PDN Photo Expo over the next few days and taking retouching courses with Carrie Beene. Would you happen to be going?
    Thanks,
    Bob

  • Best practices for speeding up Mail with large numbers of mail?

    I have over 100,000 mails going back about 7 years in multiple accounts in dozens of folders using up nearly 3GB of disk space.
    Things are starting to drag - particularly when it comes to opening folders.
    I suspect the main problem is having large numbers of mails in those folders that are the slowest - like maybe a few thousand at a time or more.
    What are some best practices for dealing with very large amounts of mails?
    Are smart mailboxes faster to deal with? I would think they would be slower because the original emails would tend to not get filed as often, leading to even larger mailboxes. And the search time takes a lot, doesn't it?
    Are there utilities for auto-filing messages in large mailboxes to, say, divide them up by month to make the mailboxes smaller? Would that speed things up?
    Or what about moving older messages out of mail to a database where they are still searchable but not weighing down on Mail itself?
    Suggestions are welcome!
    Thanks!
    doug

    Smart mailboxes obviously cannot be any faster than real mailboxes, and storing large amounts of mail in a single mailbox is calling for trouble. Rather than organizing mail in mailboxes by month, however, what I like to do is organize it by year, with subfolders by topic for each year. You may also want to take a look at the following article:
    http://www.hawkwings.net/2006/08/21/can-mailapp-cope-with-heavy-loads/
    That said, it could be that you need to re-create the index, which you can do as follows:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is stored.
    3. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.
    4. Move any “IMAP-”, “Mac-”, or “Exchange-” account folders to the Trash. Note that you can do this with IMAP-type accounts because they store mail on the server and Mail can easily re-create them. DON’T trash any “POP-” account folders, as that would cause all mail stored there to be lost.
    5. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
    6. As a side effect of having removed the IMAP account folders, those accounts may be in an “offline” state now. Do Mailbox > Go Online to bring them back online.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Working with Large Numbers

    Hi there,
    I am currently doing a school assignment and not looking for answers but just a little guidance.
    I am working with large numbers and the modulo operator.
    I might have some numbers such as :
    int n = 221;
    int e = 5;
    int d = 77;
    int message = 84;
    int en = (int) (Math.pow(message, e) % n);
    int dn = (int) (Math.pow(en, d) % n);Would there be a better way to do this kind of calculation. The dn value should come out the same as message. But I always get something different and I think I might be losing something in the fact that an int can only hold smaller values.

    EJP wrote:
    It might make sense in some contexts to have a positive and negative infinity.
    Yes, perhaps that's a better name. Guess I was harking back to old COBOL days :-).(*)
    But the reason these things exist in FP is because the hardware can actually deliver them. That rationale doesn't apply to BIgInteger.Actually, it does. All I'm talking about is a value that compares higher or lower than any other. That could be done either by a special internal sign value (my slight preference) or by simply adding code to compareTo(), equals() and hashCode() methods that takes the two constants into account (as they already do with ZERO and ONE).
    Don't worry, I'm not holding my breath; but I have come across a few situations in which values like that would have been useful.
    Winston
    Edited by: YoungWinston on Mar 22, 2011 9:07 AM
    (*) Actually, '&plusmn;infinity' tends to suggest a valid arithmetic value, and I wasn't thinking of changing existing BigInteger/BigDecimal maths (except perhaps to throw an exception if either value is involved).

  • Large numbers! Need help

    I have problem. I need to do a multiplication of to large numbers(about 150 digits). But I don't know which way I could do it. Could anyone help me?
    Thanx for help.

    I can conribute a quick and dirty string multiplication function just to play with:
    - does not treat signs
    - does not treat decimals
    Just to show it can be done
    All credits to the yesterday's bad weather - made me think about "old days" (;-o)
    CREATE OR REPLACE
    function multiply_them(x in varchar2,y in varchar2) return varchar2 is
      retval varchar2(2001) := '0';
      i pls_integer;
      j pls_integer;
      half varchar2(1000);
      dble varchar2(2001);
      z varchar2(1000);
      w varchar2(1000);
    function number_is_it(x in varchar2) return boolean is
    begin
      if (x = '') or (x is null) then
        return FALSE;
      end if;
      return (replace(translate(x,'0123456789',rpad(chr(9),10,chr(9))),chr(9),'') is null);
    end;
    function odd_is_it(x in varchar2) return boolean is
    begin
      return (mod(to_number(substr(x,-1,1)),2) = 1);
    end;
    function add_them(x in varchar2,y in varchar2) return varchar2 is
      retval varchar2(1001) := '';
      z varchar2(1000);
      w varchar2(1000);
      i pls_integer;
      j pls_integer;
      carry pls_integer := 0;
    begin
      if x is null or y is null then
        return null;
      end if;
      if x = '0' then
        return y;
      end if;
      if y = '0' then
        return x;
      end if;
      i := length(x);  -- TO CALL FUNCTION ONLY ONCE
      j := length(y);
    -- FOR NOW WE JUST LEFT PAD THE SHORTER STRING WITH ZEROS TO MAKE THEIR LENGTHS EQUAL
    -- IN CASE OF BIG LENGTH DIFFERENCE TO DO:
    -- WHEN THE SHORTER STRING IS EXHAUSTED CONCATENATE THE HEAD OF THE LONGER STRING TO PARTIAL SUM OBTAINED
      if i > j then
        z := x;
        w := lpad(y,i,'0');  
      elsif i < j then
        z := lpad(x,j,'0');
        w := y;
        i := j;
      else
        z := x;
        w := y;
      end if;
      while i >= 0 loop
        if i > 0 then
          j := to_number(substr(z,i,1)) + to_number(substr(w,i,1)) + carry;
          carry := trunc(j/10,0);
          retval := to_char(j - 10 * carry) || retval;
        end if;
        i := i - 1;
      end loop;
      return to_char(carry) || retval;
    end;
    function double_it(x in varchar2) return varchar2 is
      retval varchar2(1001);
    begin
      retval := add_them(x,x);
      return ltrim(retval,'0');
    end;
    function halve_it(x in varchar2) return varchar2 is
      retval varchar2(1000) := '';
      i pls_integer := 1;
      j pls_integer := length(x);
      k number;
      carry pls_integer := 0;
    begin
      if x is null then
        return null;
      end if;
      if x = '1' then
        return '0';
      end if;
      if substr(x,1,1) = '1' then
        carry := 10;
        i := 2;
      end if;
      while j >= i loop  
        k := (to_number(substr(x,i,1)) + carry) / 2;
        if k = trunc(k,0) then
          carry := 0;
        else
          carry := 10;
        end if;
        retval := retval || to_char(trunc(k,0));
        i := i + 1;
      end loop;
      return retval;
    end;
    begin
    -- WE WILL DO "PEASANT MULTIPLICATION" (MORE EFFICIENT THAN CONVENTIONAL MULTIPLICATION):
    -- WHEN THE FACTOR TO BE HALVED IS ODD WE ADD THE CORRESPONDING DOUBLE TO THE RESULT (INITIALLY ZERO)
    -- AT EACH STEP WE HALVE ONE FACTOR AND DOUBLE THE OTHER
    -- STEPS ARE REPEATED UNTIL THE HALVED FACTOR IS GREATER THAN ZERO
      if x is null or y is null then
        return null;
      end if;
      if number_is_it(x) and number_is_it(y) then  -- THEY ARE BOTH NUMBERS
    -- CHECK FOR TRIVIAL RESULTS: MULTIPLICATION BY ZERO AND MULTIPLICATION BY ONE
        z := ltrim(x,'0');  -- TRIM LEADING ZEROS (JUST IN CASE)
        if z = '' then
          return '0';  -- SINCE ALL ZEROS WERE TRIMMED OFF X IS ZERO
        end if;
        w := ltrim(y,'0');  -- TRIM LEADING ZEROS (JUST IN CASE)
        if w = '' then
          return '0';  -- SINCE ALL ZEROS WERE TRIMMED OFF Y IS ZERO
        end if;
        if z = '1' then
          return w;
        end if;
        if w = '1' then
          return z;
        end if;
        i := length(z);  -- TO CALL FUNCTION ONLY ONCE
        j := length(w);
    -- WILL DO IT IN LESS STEPS IF THE LESSER FACTOR GETS HALVED AND THE GREATER FACTOR GETS DOUBLED
        if i > j then  -- X > Y => Y WILL BE HALVED AND X WILL BE DOUBLED
          half := w;
          dble := z; 
        elsif i < j then  -- X < Y => X WILL BE HALVED AND Y WILL BE DOUBLED
          half := z;
          dble := w;
        else  -- X AND Y ARE EQUAL LENGTH STRINGS SO WE COMPARE THE FIRST CHARACTERS
          if substr(z,1,1) <= substr(w,1,1) then  -- X < Y => X WILL BE HALVED AND Y WILL BE DOUBLED
            half := z;
            dble := w;
          else  -- X > Y => Y WILL BE HALVED AND X WILL BE DOUBLED
            half := w;
            dble := z;
          end if; 
        end if;
    -- PEASANT MULTIPLICATION
        while half > '0' loop
          if odd_is_it(half) then
            retval := add_them(retval,dble);
          end if;
          half := halve_it(half);
          dble := double_it(dble);
        end loop;
        retval := ltrim(retval,'0');
      else
        retval := 'at least one of the two operands is not a number';
      end if;
      return retval;
    end;Regards
    Etbin

Maybe you are looking for

  • How can i retrive my email account

    i have received an e-mail that i have changed my Apple ID which i didn`t and now I cannot access my account. Also, the email shown in iCloud on my iphone is not my email. i try forgot my password but cannot access also. Kindly advise

  • SSIS execution via sql query with dtexec utility by passing proxy account

    Hi,  i am executing ssis package with dtexec utility, with xp_cmdshell package is not a file based, but stored in sql/msdb while executing i am getting 'authentication failed' i haved tried with sa user and password, by passing it...but no luck so fi

  • Adobe Flash keeps crashing.

    My Adobe Flash keeps crashing. I have uninstalled and reinstalled many times now. Any ideas? MacBook Pro 10.7.5

  • Premiere CC renders faster in the background than in the foreground?

    I have some dynamic linked comps that I need to render out for smooth playback.  Select the region on the timeline, press enter.  What I've noticed is that it renders at about the rate of one frame every five seconds.  When I bring another window to

  • Express DAQ data output to two numerical indicators

    Hi, I'm a complete Labview newbie, so apologies if this is a really obvious question, but after reading through pages of documentation I still can't get anywhere. I'm using a PCI 6220 data acquisition card, and want to measure 2 independant currents,