extend spell number fo rinvoice

Hi all, I need extend this function for 1000000000 numbers

create or replace function Digits3_To_Word ()P_number to the number( )

return VARCHAR2 as

-Spend only three digits

-This function returns the Word equivalent to its number

-Accepted values are from 0 to 999

--

L_Return2 VARCHAR2 (500) := NULL ;

i Nombre := 0 ;

j Nombre := 0 ;

k Nombre := 0 ;

V_inp_Number Number := 0 ;

V_temp Varchar2 (50) := NULL ;

type of OneArray is table of VARCHAR2 (50) ;

type of TenArray is table of VARCHAR2 (50) ;

OneStr OneArray := OneArray ('One ',

'Two ' ,

"The third" ,

"Four" ,

"Five" ,

'Six ' ,

"Seven" ,

"Eight" ,

"Nine" ,

'Ten ' ,

"Eleven" ,

'Twelve' ,

"Thirteen" ,

"Fourteen" ,

"Fifteen" ,

"Sixteen" ,

"Seventeen" ,

"Eighteen" ,

"Nineteen" );

TenStr TenArray := TenArray ('',

"Twenty" ,

"Thirty" ,

"Forty" ,

"Fifty" ,

"Sixty" ,

"Seventy" ,

"Eighty" ,

"Eighty" );

BEGIN

V_inp_Number := P_Number ;

if V_inp_number > 999 then

V_inp_number := 0 ;

end if ;

V_temp := LPAD (to_char(V_inp_number),3,0) ;

-Find hundredth position

i := TO_NUMBER (substr(V_temp,1,1)) ;

if i > 0 puis

L_Return2 := OneStr (i) || "Hundred" ;

end if ;

-Find the last 2 digits

i := TO_NUMBER (substr(V_temp,2,2)) ;

j := TO_NUMBER (substr(V_temp,2,1)) ;

k := TO_NUMBER (substr(V_temp,3,1)) ;

if i > 0 and i < 20 puis

L_Return2 := L_Return2 || OneStr (i) ;

end if ;

if j >= 2 puis

L_Return2 := L_Return2 || TenStr (j) ;

if k > 0 puis

L_Return2 := L_Return2 || OneStr (k) ;

end if ;

end if ;

Return L_Return2 ;

EXCEPTION WHEN Others

THEN NULL ;

END ;



SELECT DIGITS3_TO_WORD1 (226) FROM DUAL work

but

SELECT DIGITS3_TO_WORD1 (2336) FROM DUAL job do not work


I posted something similar for a long time in Russian and make AFAIK in Serbian shouldn't be that different

Re: Re: translation for amount in words in another language

Concerning

Etbin

Tags: Database

Similar Questions

  • BlackBerry smartphone how to extend the number of rings before answering

    Hi people,

    My first visit here and I'm certainly not geek.  I am trying to find the solution to extend the period of my phone rings (8520), before ringing not.

    Any ideas would be greatly appreciated.

    Hello and welcome to the community!

    The length of time that your BB will sound before you roll to voicemail is controlled by the mobile operator... their ring upwards and ask to be adjusted to the length of time that you want. Note that this is not a "number of rings" question... the number of rings is entirely dependent on the ringtone that you select. Rather, it is a length of time to play/repeat the ringtone.

    Good luck!

  • BlackBerry Smartphones how extend the number of rings before the message store?

    'Help' was told go to: options - work - General settings - expand - number of rings, but I don't even have a working under options section... 9000 "BOLD"

    Hi Welcome to the Forum and rubber boots

    Just ring your service provider and ask them to increase the number of rings up.

    It will be useful,

    David

  • How to find my original serial number for Photoshop CS3 Extended in CS6.

    Hello

    I try to install Photoshops CS6 extended on my new computer. I downloaded the software installation and input my CS6 extended (upgrade) serial number, but it must be original CS3 Extended serial number as well. That was purchased through a box & disk before them downloads. Needless to say, I don't have the box, but I still have the program running on my old computer. Is there a way to look up while CS6 is open on the old computer?

    If it's a Windows machine, and then try to run Belarc Advisor to get the serial number

    http://www.Belarc.com/free_download.html

  • Why can't I install CS5 extended on new iMac with my serial number?

    All I wanted to do was take my CS5 extended serial number and install 5 PS on my new iMac (they have more disk drives). However, my serial number is 20 digits and it does not work? Sometimes shy of numbers. Can someone explain how this can be possible? I refuse to rent CS5 when I already have a lisc. Thank you.

    You need get the serial number of your Adobe account on the corporate web site, once there go in 'my products '.  You can get the number from there.

    Adobe applications show that you truncated intentionally serial numbers, with only 20 numbers that you have seen.  The full number is 24-digit long.  That's done on purpose, not to encourage software piracy.

  • Presentation of Adobe acrobat 9 Pro does not accept my serial number

    Hello

    I bought Acrobat 9 Pro Extended a number of years, crashed my computer, on which it was installed and I want to install on my new computer.

    When you post, I get my S/N, but it comes up with a red X "incorrect serial number".

    I am the original owner and it's a valid S/N, I need help to fix the problem

    Thank you

    Tim

    Hi timf27368172,

    Adobe Acrobat 9 Pro and Acrobat 9 Pro Extended are two different versions.

    Make sure that you have installed the right pair.

    Check your serial key before using it find the serial number of your product Adobe quickly.

    Kind regards
    Nicos

  • Try to download the updates to my suite PS CS5 extended. It won't do. That is what it is?

    My PS CS5 Extended serial number is registered and approved by Adobe. It's a new MacBook Pro, but I retired the old Powerbook. Thoughts on why it is said that five updates thereafter cannot or will not do, and I should try again later. After five tries, there must be something else wrong. Help appreciated. J

    You can have 2 facilities providing you disabled one of your previous installations.  If you do not, contact Adobe customer service to reset your activations.

    Nancy O.

  • How to install Photoshop cs6 extended?

    I bought two packages cs6 different at different times. I bought and installed first design standards. This figure includes photoshop cs6. I then found a good deal on the production premium, so I bought it. Production premium is supposed to come with photoshop extended. I installed prod. Premium and I still had the ordinary photoshop (opening of the start screen was simply the version of photoshop with circles instead of the version of photoshop with splashes of paint).

    I tried photoshop uninstallation and reinstallation of the prod. bonus disc, but it will allow to install photoshop it seems.

    How can I go about installing the extended version of photoshop that I should have access to?

    Please follow it mentioned below as follows:

    1. Open Photoshop
    2. Choose Help > deactivate
    3. Select Disable permanently in this computer after deactivation completes
    4. Click on disable.
    5. Open Photoshop. You are prompted for a serial number. Enter the extended serial number.

    Kind regards

    Ashutosh

  • Can I upgrade Photoshop CS6 from standard to extended without having to reinstall?

    Hello

    I have Photoshop CS6 Standard already installed on my Mac (OS 10.8). My employer just bought the long version for me and I would like to upgrade. I have a valid serial number to do this.

    I understand that the software is the same, and according to the serial number, can unlock the extended part of the CS6. Y at - there no way of upgrading the installed version to extended by re-Internetworking new serial number or do I just install a second copy of PS CS6 and have 2 PS CS6 (a standard and a scope)?

    Any suggestions would be helpful.

    Thank you.

    Hello

    Please follow it mentioned below as follows:

    1. Open Photoshop
    2. Choose Help > deactivate
    3. Select Disable permanently in this computer after deactivation completes
    4. Click on disable.
    5. Open Photoshop. You are prompted for a serial number. Enter the extended serial number.

    Kind regards

    Ashutosh

  • Photoshop CS6 upgrade does not recognize CS3 Extended as product qualification

    I'm unable to install my Photoshop CS6 upgrade because the upgrade does not recognize a product calling on my system.  Asked about this, I enter my current Photoshop CS3 Extended serial number, but the upgrade does not recognize as valid a series number of an eligible product.  I tried to do a clean install to make sure that no other applications are running or in conflict.  My operating system is Windows XP Media Center Edition 2005, Service Pack 3.  I have an Intel Core 2 Quad CPU @2.66 GHz with 4 GB of RAM.

    SouthCityTim I recommend you to contact our support team so they can validate your upgrade and the serial number.  For the best support, I recommend our chat support at http://adobe.ly/yxj0t6.  Our chat representatives can provide a personalized experience to solve the problem you described.

  • RINGTONE DO NOT REPEAT

    Greetings.

    A while back, I had problems with my ringtones and audits, because the phone is not reading my SD card; However, after updating several weeks ago, the sounds of my SD card all appeared on my ringtone list and I was able to customize once more my sounds.

    But now I have a new problem with ringtones. The tone, I chose is a Word from the end of one minute in length. On my Droid X the phone would repeat the word to the end, until I answered or dismissed the appeal [or it went to voicemail] but the Droid 4 is only play once!

    I confirmed with the appellants that the ring continued at their end of the call and she goes to voicemail after [only] four rings.

    So, how can I keep it sounds on my end?

    And how to extend the number of rings [before transferring to the voicemail]?


  • Triple monitors with Thinkpad Mini Dock Plus Series 3 T520

    Hello

    I have Lenovo T520 with home Mini Dock Plus Series 3 station.

    I would like to connect three monitors, that is, two dviports and thirdly, one is the T520 monitor.

    I updated my video driver for Interl (R) Graphics 3000 Driver.

    When I try to run the NVIDIA Graphicdriver, I got a message error "the graphics driver is not compatible with the graphics hardware. I tried to find a solution on Lenovo forum

    http://forums.Lenovo.com/T5/options-Accessories/mini-dock-plus-series-3-with-triple-monitors/TD-p/57...

    It says that I need to enable Optimus in the system.

    I can't understand what he found where I can activate Optimus?

    You guys have any suggestions as to how I can put it up using two DVI ports instead of use the vga?

    Kind regards

    Thank you all guys.

    While constantly looking for a solution to extend the number of monitor. I managed to find a solution. Today, I had "I - TEC USB 2.0 graphics video card" and he connected with one of the USB port. It works very well and I am also pleased with the video quality. I can separately used the third monitor. It is also possible to share the display between the second and the third screen.

    Concerning

  • Application of background visible on a real device (all well in the Simulator)

    Hello

    I developed a small backgroundapplication, which shows a menu entry in the app phone "call via Asterisk. If I choose this option a defined number is called. Later, I want to add the number as dtmf tones.

    The application uses excactly as expected in the device Simulator 8310-JDE (included in the eclipse plugin) on JDE 4.5. with eclipse.

    But when I deploy the application (signed) to a real 8310 with firmeware v4.5.0.81, it appears an application icon on the desktop (homescreen) of blackberry and the menuentry in the phone app is missing. Why the application is not deployed as a background on the real dev app. ?

    The only difference between the Simulator and real device is the language chosen, but I don't think it's important.

    The application consists of files, as shown below.

    import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;import net.rim.device.api.system.Application;
    
    public class Asterisk extends Application {   public static void main(String[] args)    {            // Create a new instance of the application            // and start it's event thread.            new Asterisk().enterEventDispatcher();    }
    
        public Asterisk()    {        //create a new instance of the menuitem       AsteriskMenuItem asterisMenuItem = new AsteriskMenuItem(40);
    
          //get the instance of the standard-menu an ad the new menuitem        ApplicationMenuItemRepository     .getInstance().addMenuItem        (ApplicationMenuItemRepository.MENUITEM_PHONE,asterisMenuItem);
    
        }}
    
    package com.schiffl.mobile.asteris;
    
    import net.rim.blackberry.api.invoke.Invoke;import net.rim.blackberry.api.invoke.PhoneArguments;import net.rim.blackberry.api.mail.Message;import net.rim.blackberry.api.menuitem.ApplicationMenuItem;import net.rim.blackberry.api.phone.Phone;import net.rim.blackberry.api.phone.PhoneCall;import net.rim.blackberry.api.phone.PhoneListener;import net.rim.device.api.system.ControlledAccessException;import net.rim.device.api.ui.Field;import net.rim.device.api.ui.UiApplication;
    
    public class AsteriskMenuItem  extends ApplicationMenuItem{     //number to be dialed via Asterisk        String servicenumber  = "1234567";
    
          //using the default constructors here.        AsteriskMenuItem(int order)       {         super(order);     }
    
           //methods we must implement       //Run is called when the menuItem is invoked      public Object run(Object context)     {             /*             * Normally the dialed number could be found in the context object             * because of a bug in the api which is solved in v.4.7 the context            * object is always null for MENUITEM_PHONE so it is necessary to          * use a workaround, here the number is extracted from the field with focus,           * which contains the dialed number           */            Field myField = UiApplication.getUiApplication().getActiveScreen().getFieldWithFocus();           String phoneNumber = myField.toString();
    
              //TODO Convert phoneNumber to dtmf-tones
    
              try           {             PhoneArguments call = new PhoneArguments(PhoneArguments.ARG_CALL,servicenumber);              Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);
    
    //                PhoneCall myCall = Phone.getActiveCall();//               myCall.sendDTMFTones(phoneNumber);            }         /*             * The ControlledAccessException is thrown             * if the system administrator restricts access to the phone application           * using application control.          */           catch (ControlledAccessException e)           {             //TODO some exceptionhandling             }
    
             //normally you can do something with the given context inside of the run-method           //because of a bug in the API the context is always null so, we don't use it...           return context;       }
    
           //toString should return the string we want to        //use as the lable of the menuItem        public String toString(){         return "Call via Asterisk";       }
    
    }
    

    The entry for the RRT signature was missing in my .csl file. I change it manually, I added

    '52525400 = RIM API execution' requested signatures, deployed and it works...

  • Need help with forms

    Is there a way to extend the number of forms beyond what I find in the rectangle tool in the toolbar?

    What version of photoshop are you using?

    Thanks to the shape of Custom Tool as below.

    https://helpx.Adobe.com/Photoshop/using/using-tools.html

  • Numerical value in words (for the printing of cheque)

    Hi all

    To convert a numeric value into words (for the printing of the check), I created two functions in forms and reports 6i.

    (1) FUNCTION RETURN CHAR BELONGS to fate (number of val)
    SP varchar2 (100);
    BEGIN
    If val > 0 then
    Return (initcap (to_char (to_date (val, 'SSSSS'), 'SSSSSSP'))) End Function
    on the other
    return (»);
    end if;
    END;

    (2) function SPELLED_AMOUNTFormula returns the Char type is
    number of cents;
    c_str varchar2 (80);
    number of Val;
    Start
    Val: =: p_instr_amt;
    cents: = (val mod 1) * 100;
    If hundred > 0 then - creates a string for cents
    c_str: = "and" | Spell (to_char (cents)) | "only son";
    on the other
    c_str: = 'only ';
    end if;
    If < 1000 val and val > 1 then
    return ((spell (floor (val))) initcap | c_str);
    elsif val > 1000 then
    Return (initcap (Spell (Floor(Val/1000))) |) "Thousand" |
    fate (floor (mod 1000 val)) | c_str);
    on the other
    return ('Zero': c_str);
    end if;
    end;

    This conversion of value of thousands. How to convert the value of greater than 1 Lake. Please set this code.


    Thanks in advance

    Hello

    To spell out integers up to 5 373 484, use 'Jsp' instead of 'ssssssp '.

    TO_CHAR ( TO_DATE ( n     -- n = integer to be spelled
                  , 'J'
                )
         , 'Jsp'          -- Case-sensitive
         )
    

    5373484 is the date of 31 December 9999, the last value DATE in Oracle. In Oracle 10.2, you can actually spell number a little higher by using the expression above, but I don't know why, and I wouldn't count on being able to do in the future versions.

    There is no need of INITCAP here. If the 2nd argument TO_CHAR is initcapped (as above), then the output will be, too.

    To spell even greater numbers, check out this page of Tom Kyte, which also includes languages other than English and the language of lakh-crore-Arabic-kharab.

    Published by: Frank Kulash, October 13, 2012 07:21

Maybe you are looking for

  • WLAN on Tecra 9100 - LED should go orange if the s/w keyboard shortcut NOT installed?

    I bought a Tecra 9100 that had been restored to XP SP1 and without good Toshiba utilities that most drivers seemed to be OK - for example screen OK but USB has been 1.1 until I added the Intel Chipset drivers. I can't get the WLAN card to work by sli

  • Reboot and shutdown does not workf

    I've upgraded to el capitan today apparently successful. But on the restart and Shut down everything goes except the "Dock" and the macbook does not stop. I wanted to stop at the Terminal and a key appears in the password and nothing happens. Any hel

  • can anyone alter my chattlogg?

    I discovered a computer between my boyfriend and someone else chattlogg om, he claims that he does not know where it comes from, I say a chattlogg is not something that can be with.it messed up is exactly what it is, am I good or it?What should I bel

  • LGS528 / LGS552 - OK to mount vertically?

    Hello The LGS528 / LGS552 switches are fanless, so I would like to know if it is completely safe to mount vertically with the ports up towards the ceiling, without risking the possibility of overheating and void the warranty? The manual makes no ment

  • 61-is X in a defective way

    Hello bought a X 61 of second hand, beautiful, works fine and windows 7 don't charge no problem, but when I hover over any application, file, etc folder it automatically opens their.  What wrong with it? I can't pick and choose what I want without hi