Money in formulation.

Hi all
is there any code for money display in words?
as:
250

in the words.

Hudred two fifty.


Please guide me thanks in advance

Sarah

Sarah,

Try this function.

CREATE OR REPLACE FUNCTION Fn_Num_To_Words (Num_Source NUMBER, Str_Cur_Code VARCHAR2) RETURN VARCHAR2 IS
      Str_Source  VARCHAR2(16);
      Str_Final   VARCHAR2(255);
BEGIN
   Str_Source := TO_CHAR(Num_Source, '099999999999.99');
      IF TO_NUMBER(SUBSTR(Str_Source, 1, 4)) != 0 THEN
           Str_Final := Str_Final || TO_CHAR(TO_DATE(TO_NUMBER(SUBSTR(Str_Source, 1, 4)), 'J'), 'JSP') || ' BILLION ';
      END IF;
      IF TO_NUMBER(SUBSTR(Str_Source, 5, 3)) != 0 THEN
           Str_Final := Str_Final || TO_CHAR(TO_DATE(TO_NUMBER(SUBSTR(Str_Source, 5, 3)), 'J'), 'JSP') || ' MILLION ';
      END IF;
      IF TO_NUMBER(SUBSTR(Str_Source, 8, 3)) != 0 THEN
           Str_Final := Str_Final || TO_CHAR(TO_DATE(TO_NUMBER(SUBSTR(Str_Source, 8, 3)), 'J'), 'JSP')|| ' THOUSAND ';
      END IF;
      IF TO_NUMBER(SUBSTR(Str_Source, 11, 3)) != 0 THEN
           Str_Final := Str_Final || TO_CHAR(TO_DATE(TO_NUMBER(SUBSTR(Str_Source, 11, 3)), 'J'), 'JSP')||' ';
      END IF;
      IF TO_NUMBER(SUBSTR(Str_Source, 15, 2)) != 0 THEN
           Str_Final := Str_Final || ' &'|| TO_CHAR(TO_DATE(TO_NUMBER(SUBSTR(Str_Source, 15, 2)), 'J'), 'JSP') || '.';
      END IF;
      IF Str_Final IS NOT NULL THEN
           Str_Final := Str_Cur_Code || ' ' || Str_Final || 'ONLY';
      END IF;
      RETURN Str_Final;
EXCEPTION WHEN OTHERS THEN RETURN NULL;
END;

Kind regards

Manu.

If this answer is useful or appropriate, please mark. Thank you.

Published by: Manu. August 23, 2009 20:52

Tags: Oracle Development

Similar Questions

  • Problem of payroll costs

    Hi gurus,

    I define an element called classicfication 'EOSB available' as an 'Information '.

    Input values are: 'Amount' - which is calculated by the quick formula
    and 'Effective Date '.


    and I associate the "encrypted" type item and I gave the 'balancing only Segment' and 'Costs' is null and I checked the classification also looks. encrypted, distributable, 'throughput' for more information.

    everything works fine but when I run the 'COSTS' and 'transfer to' process, segments of this accounting does not appear. but all other gains & deduction accounts items display correctly in both and in the distribution of costs also report.



    can you please explain that how the accounts of elements of type information will be carried out in GL is there any another process for this. ?


    Thank you
    Shariff

    Hello

    1: place value sum in the FF for the Allocation of cost for the item of Information EOS.

    2nd: information may be encrypted ONLY by entry creation/usage as pay & units ordered as money & in formula results make sure you give value to pay to store the value of output but not any other value of the entry, then your problem is solve, costing would choose also to this element of Information EOS.

    Thank you
    JP

  • Money/hr.rate/Time - formula in numbers

    Hello

    How to create the formula like this by the numbers?

    Money / hourly rate = time

    Thank you!

    Hello, you can see here numbers for Mac 3.0: create formulas and use predefined functions

  • Numbers: Money & money formulas

    Hello

    I created a basic table to save my money in / money for my small business.

    Below you can see a screenshot of basic set up:

    What I'm after is for the TOTAL (in column G / line 4) to automatically add the D column and subtract column G and for this to continue when I use the short cut 'alt - down arrow' to add a new line / entry.

    I formatted line 1 under the heading and line 4 as the footer.

    Thank you very much

    Stophen.

    If you have set the 4th place as a footer line, then this formula in G4 should work:

    = SUM (D) - SUM (G)

    This will adjust automatically when you add or several new body lines and line 4 becomes row 5, etc.

    SG

  • formulas in the menu drop-down?

    Hello everyone, so the experience I've had here the last time it was amazing so why not come back to the question.

    I have a spreadsheet that will be followed by my money in and out of the clinic. I want to create a drop down menu that will allow me to choose what percentage of compensation is due to a technician/doctor

    Ex: if I want to that they get paid 40% I want G1 look something like this x.40 of the sum (B1) or if I want to give them a cost share & pay sum (B1)-(C1) - x.40 (F1)

    Is it possible to make formulas in a pop-up menu? Thanks for any help you guys can provide on this...

    Marshall

    .

  • Numbers: The mobile cell formula

    This may work for you:

    E2 = if (value (D2) > 0, C2−D2, ' ')

    It's abbreviation dethrone select cell E2 and then type (or copy and paste it here) the formula:

    = IF (value (D2) > 0, C2−D2, ' ')

    Select cell E2, copy

    Select cells E2 at the end of column E, block

    F2 = SIERREUR (IF (AND (E2 = "", E1 > 0), C2 + CEILING (SUM($E$1:E1) ÷ (ROWS (D) −COUNTA (D)), 1), ' '), ' ')

    Select cell F2, copy

    Select cell F2 at the end of column F, dough

  • Is it possible to use Microsoft Money on a mac laptop?

    I think of buying my first mac laptop.

    Is it possible to use Microsoft Money on the mac?

    Install Windows on your Apple computer then any program that runs on Windows. Windows can be installed using Boot Camp Assistant or using a machine virtual Parallels, Fusion, or VirtualBox.

  • Need a formula which uses the VLOOKUP and HLOOKUP function to return a single value

    I'm creating a worksheet price with multiple values. In the table below if I select size 16 in blue the result must return 19.5

    Red Yellow Blue Green
    size
    10 5 6.25 7.5 8.75
    12 13 14.25 15.5 16.75
    14 15 16.25 17.5 18.75
    16 17 18.25 19.5 20.75
    20 19 20.25 21.5 22.75

    Hi Eric,.

    More large table is Table 1.

    Formula is C2 of table 2.

    C2: = INDEX (1::A1:E7, GAME table (Table a, 1::A, 0), GAME (B2, 1::1:1, 0),-l' surface index)

    Kind regards

    Barry

  • I got 'Triple 7 slots' for more than 2 years, with a bit of money on it, last week that it had to be updated, it would not update, so I removed it, the downloaded it again once, now my money is gone...

    I had "Extreme Triple Shots" on my MacBook Pro for over 2 years... He had to be updated, and then he never recovered last week, yesterday he disappeared from my Mac, so I downloaded again, now I don't have any money there, which was very little... What can I do to get my money back on...

    Ppenny

    < personal information deleted by host >

    Contact the developer of the app. This is not an Apple product.

  • Hi I buy chips 4900 rupees today. For the game teen patti app money on my account but not received unlimited chips in play please help cut me as soon as POSSIBLE.  Thank you and best regards I am Ashu Khatri

    Hi I buy chips 4900 rupees today. For the game teen patti app unlimited

    The cut on my account but not received money chips game please help me as soon as POSSIBLE.

    Thanks and greetings
    Ashu Khatri

    Contact the manufacturer of the App or iTunes and ask them about it.

  • Use of formula number

    3.6.2 numbers

    Header 1 Header 2 Header 3 Header 4 Header 5
    07:00 x z There

    I need a fix.

    The header 1 is lasting. If in the header is 2 or 3 x the value in 1 header will be copied in heading 4. If x is not present in 2 or 3, the value of the header 1 will be copied in heading 5.

    Can someone help me with this?

    Thank you

    Hi onopilot,

    Here is one approach. First note the format for the duration which recognize numbers. You can get the display to indicate what you have but your data entry should be as above if you don't want to fight against the program.

    D2 = IF (OR(B2="x",C2="x"), A2,"" ")

    It copies the value in A2 if there is an 'x' in B2 or C2.

    E2 = IF (LEN (D2) 0, A2 ="," ")

    This will check to see if there are characters in D2 and if there is not, copy the value in A2.

    These two formulas can be filled down.

    Quinn

  • Hello on the program is not working properly, please return the money to buy other best program and thank you

    Hello on the program is not working properly, please return the money to buy other best program and thank you

    A faulty program that has not been purchased Mali returned from four days

  • I unsubscribed from my application only one then it refunded, but how long does take to get to my accounan for me to get my money back

    I bought a computer application don't work well one I unsubscribed from my application one then it refunded, but how long does take to get to my accounan for me to get my money, I have looking for Bowen but I Don t have the refund back on my account

    < re-titled by host >

    Normally apple support sends you an email when a purchase is refunded. Most of the time it will hit your account within 72 hours.

  • How to move cells containing formulas without absolute references and maintain cell references

    I know about the selection of the absolute references, etc., but sometimes I'd like to be able to copy a group of cells with formulas and paste elsewhere all retaining the original cell references. For example, several cells with a formula referring to 'A1' continue referring to 'A1' even when I copy the cells elsewhere.

    Is there a change of copy and paste (for example, command + option + C or something?) so that I can copy the same that in Excel, that does not change the cell references when you copy a formula elsewhere?

    Thank you!

    Hi jivejive,

    I am not in anyway you want with a group of cells. I did it with individual cells by copying the function since the Inspector formula and then paste in the Inspector in the new location.

    Quinn

  • Help formula: count the number of whites in a column "up to the...» »

    name string metric
    Matthew 5
    brand 1
    brand optimusPrime
    brand
    Luke 2
    Matthew jamesLikesSteak
    John 3
    Luke lukingGood
    Matthew
    Luke
    John johnnyPop
    John

    Hey guys - so I do business with a bit of a problem in number. I have a number table - the table above is a simplified representation of the corresponding parts of the table. The left column 'name' is a series of 12 names repeated and 0 missing values. The "string" middle column is a column that has a lot of missing values by a formula based on another column that is not relevant to this problem. Who is not missing is all strings. The problem I have is in the 'metric ': right column

    I am trying to create a dynamic formula which will result in the numbers and blanks, exactly as above. My goal is to create a formula that, for each line, account the number of whites in the column 'chain' until we reach an empty 'string' which occurs next to "namesake" as in the line of housing the formula - and if there is no such a situation, so that it is empty. For example, if the second row (including header row) bears the name of "Matthew". The next time that a white 'string' occurs next to the name "matthew" is tenth. The number of whites that occur between the second row, and the ninth is 5 (lines 2, 3, 5, 6 and 8). I manually coded a small part of the table to use something like this (which would be installed in cell C2 in this example):

    = IF (B2 = "", COUNTBLANK(B2:B9), "")

    This formula produces the correct number for the first row of data (5), but it does not dynamically fulfill what I'm trying to do this since I am currently having the formula to find the next blank 'chain' that occur next to "name" in the formula line.

    I hope that someone has encountered anything like this before. I tried to go through all the functions and numbers from formulas, but so far I have not found much success.

    Hi BaronDe,

    I need to ask, "why you try to do this? So what you want is possible it will be a complex solution. It may be much easier to get your information in a different way. Indicate these blanks?

    You should know that COUNTBLANK() will not count a cell with a formula, even if this formula resolves to «»

    Quinn

Maybe you are looking for

  • Cancellation of individual programs

    Hello I just found out that the one-to-one program is cancelled in apple store. I wonder if we should be reimbursed the remaining days of the composition which are still valid, because we all paid $99 per year for this.

  • About the App permissions

    I want to know why FF would need me to grant the rights of app to take photos and videos without my knowledge or permission. I love FF, but I will not install as long as FF retains this in the app permissions! An official of the FF would you please a

  • Update of power supply for HP Pavilion 500-056

    I want to upgrade to a discrete graphics card, but the 300 watt PSU is not enough.  It is not one of the standard sizes such as ATX12V, EPS12V, SFX12V (small footprint), LFX12V (low profile form factor), or TFX12V (slim form factor). Does anyone know

  • I have a XP W my last PC installation disk and I recently bought a Zoostorm PC no BONES. Why the XP will not be installed?

    As in the title, tried to install XP on my new PC. Started OK with partition disk etc. and got to the real Windows Installer screen which seemed OK progress until it reaches install will finish in 35 minutes. page, then it froze and BSOD appeared. I

  • The "Send form" button does not work in Chrome or Safari PDF viewer

    I have created a PDF file and have included a button 'Submit' at the bottom of the page. When all required fields are completed, hit Submit attached the document in an e-mail message to us. The only problem is that this 'submit' function only works w