NUMBER TO WORDS CONVERSION

AOA ALL
Dear i want to convert a numeric value for eg:'1000' into words that is 'ONE THOUSAND' in a report.does any body knows a method or function for that available in developer or any other way...
do tell me
thx

Hi,
See the link
converting number to words(100==one hundred)
Provided a function to convert number to words
Thanks,
Oracle Reports Team

Similar Messages

  • Number to word conversion

    wut is this 'j','jsp' stands for
    can anybody explain me this format specifier...
    SQL> select to_char(to_date(123,'j'),'jsp') from dual;
    TO_CHAR(TO_DATE(123,'J')
    one hundred twenty-three
    SQL> select to_date(123,'j') from dual;
    TO_DATE(1
    03-MAY-12

    A Julian date is the number of days since January 1, 4712 bc. Julian dates allow continuous dating from a common reference. You can use the date format model "J" with date functions TO_DATE and TO_CHAR to convert between Oracle DATE values and their Julian equivalents.
    Example
    This statement returns the Julian equivalent of January 1, 1997:
    SELECT TO_CHAR(TO_DATE('01-01-1997', 'MM-DD-YYYY'),'J')
    FROM DUAL;
    TO_CHAR
    2450450
    jsp stands for julian spelled out.
    So in your example you first tell that 123 is a julian date and than convert it to a character string spelled out.

  • Number to word Indonesia version

    i need a help
    i want to make number to word conversion in indonesia language
    my question how to use the javascript in adobe livecyle, i am a newbie in using javascript and livecyle
    here the script that i got from google
    [quoute]
    function terbilang(bilangan) {
    bilangan    = String(bilangan);
    var angka   = new Array('0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0');
    var kata    = new Array('','Satu','Dua','Tiga','Empat','Lima','Enam','Tujuh','Delapan','Sembilan');
    var tingkat = new Array('','Ribu','Juta','Milyar','Triliun');
    var panjang_bilangan = bilangan.length;
    /* pengujian panjang bilangan */
    if (panjang_bilangan > 15) {
       kaLimat = "Diluar Batas";
       return kaLimat;
    /* mengambil angka-angka yang ada dalam bilangan, dimasukkan ke dalam array */
    for (i = 1; i <= panjang_bilangan; i++) {
       angka[i] = bilangan.substr(-(i),1);
    i = 1;
    j = 0;
    kaLimat = "";
    /* mulai proses iterasi terhadap array angka */
    while (i <= panjang_bilangan) {
       subkaLimat = "";
       kata1 = "";
       kata2 = "";
       kata3 = "";
       /* untuk Ratusan */
       if (angka[i+2] != "0") {
         if (angka[i+2] == "1") {
           kata1 = "Seratus";
         } else {
           kata1 = kata[angka[i+2]] + " Ratus";
       /* untuk Puluhan atau Belasan */
       if (angka[i+1] != "0") {
         if (angka[i+1] == "1") {
           if (angka[i] == "0") {
             kata2 = "Sepuluh";
           } else if (angka[i] == "1") {
             kata2 = "Sebelas";
           } else {
             kata2 = kata[angka[i]] + " Belas";
         } else {
           kata2 = kata[angka[i+1]] + " Puluh";
       /* untuk Satuan */
       if (angka[i] != "0") {
         if (angka[i+1] != "1") {
           kata3 = kata[angka[i]];
       /* pengujian angka apakah tidak nol semua, lalu ditambahkan tingkat */
       if ((angka[i] != "0") || (angka[i+1] != "0") || (angka[i+2] != "0")) {
         subkaLimat = kata1+" "+kata2+" "+kata3+" "+tingkat[j]+" ";
       /* gabungkan variabe sub kaLimat (untuk Satu blok 3 angka) ke variabel kaLimat */
       kaLimat = subkaLimat + kaLimat;
       i = i + 3;
       j = j + 1;
    /* mengganti Satu Ribu jadi Seribu jika diperlukan */
    if ((angka[5] == "0") && (angka[6] == "0")) {
       kaLimat = kaLimat.replace("Satu Ribu","Seribu");
    return kaLimat + "Rupiah";
    [/quote]
    PLEASEEE................ YOUR HELP...

    i need a help
    i want to make number to word conversion in indonesia language
    my question how to use the javascript in adobe livecyle, i am a newbie in using javascript and livecyle
    here the script that i got from google
    [quoute]
    function terbilang(bilangan) {
    bilangan    = String(bilangan);
    var angka   = new Array('0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0');
    var kata    = new Array('','Satu','Dua','Tiga','Empat','Lima','Enam','Tujuh','Delapan','Sembilan');
    var tingkat = new Array('','Ribu','Juta','Milyar','Triliun');
    var panjang_bilangan = bilangan.length;
    /* pengujian panjang bilangan */
    if (panjang_bilangan > 15) {
       kaLimat = "Diluar Batas";
       return kaLimat;
    /* mengambil angka-angka yang ada dalam bilangan, dimasukkan ke dalam array */
    for (i = 1; i <= panjang_bilangan; i++) {
       angka[i] = bilangan.substr(-(i),1);
    i = 1;
    j = 0;
    kaLimat = "";
    /* mulai proses iterasi terhadap array angka */
    while (i <= panjang_bilangan) {
       subkaLimat = "";
       kata1 = "";
       kata2 = "";
       kata3 = "";
       /* untuk Ratusan */
       if (angka[i+2] != "0") {
         if (angka[i+2] == "1") {
           kata1 = "Seratus";
         } else {
           kata1 = kata[angka[i+2]] + " Ratus";
       /* untuk Puluhan atau Belasan */
       if (angka[i+1] != "0") {
         if (angka[i+1] == "1") {
           if (angka[i] == "0") {
             kata2 = "Sepuluh";
           } else if (angka[i] == "1") {
             kata2 = "Sebelas";
           } else {
             kata2 = kata[angka[i]] + " Belas";
         } else {
           kata2 = kata[angka[i+1]] + " Puluh";
       /* untuk Satuan */
       if (angka[i] != "0") {
         if (angka[i+1] != "1") {
           kata3 = kata[angka[i]];
       /* pengujian angka apakah tidak nol semua, lalu ditambahkan tingkat */
       if ((angka[i] != "0") || (angka[i+1] != "0") || (angka[i+2] != "0")) {
         subkaLimat = kata1+" "+kata2+" "+kata3+" "+tingkat[j]+" ";
       /* gabungkan variabe sub kaLimat (untuk Satu blok 3 angka) ke variabel kaLimat */
       kaLimat = subkaLimat + kaLimat;
       i = i + 3;
       j = j + 1;
    /* mengganti Satu Ribu jadi Seribu jika diperlukan */
    if ((angka[5] == "0") && (angka[6] == "0")) {
       kaLimat = kaLimat.replace("Satu Ribu","Seribu");
    return kaLimat + "Rupiah";
    [/quote]
    PLEASEEE................ YOUR HELP...

  • For num to word conversion & vice versa

    Dear all,
    Can any one give me the full Code or sample for converting Number into word or vice versa. Pl. give me the PL/SQL code for the same ASAP.
    Thanx in Advance.
    Regds,
    Bhavesh

    Hi,
    You can use the following SQL statement to convert number in to words:
    SELECT TO_CHAR (TO_DATE(TO_CHAR(50560,'99999999999'),'J'),'JSP') from dual;
    will output:
    FIFTY THOUSAND FIVE HUNDRED SIXTY
    Keep in mind, there is some restriction here, as we are using Oracle Julian Date for conversion, and as per Oracle restriction Julian days can be between 1 and 5373484 (31-Dec-9999). So if your number range is between this, then you can use it with no problem.
    Thanks
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Bhavesh Mehta ([email protected]):
    Dear all,
    Can any one give me the full Code or sample for converting Number into word or vice versa. Pl. give me the PL/SQL code for the same ASAP.
    Thanx in Advance.
    Regds,
    Bhavesh<HR></BLOCKQUOTE>
    null

  • Function to convert number to word format.

    Dear Friends,
    Could you please help me with a code that will take 'sum of all values of a column' as input parameter & return its value in word format.
    Number can be negative , it can/can't contain digits after decimal.
    i have two ways but it won't work when my no. becomes negative
    Moreover i want that it should work on both type of data, numbers without decimal & number with decimal.
    that is what i possess:
    1)
    function CF_1FORMULA return char is
    num1 number;
    p_number number;
    type myArray is table of varchar2(255);
    l_str myArray := myArray( '',
    ' thousand ', ' million ',
    ' billion ', ' trillion ',
    ' quadrillion ', ' quintillion ',
    ' sextillion ', ' septillion ',
    ' octillion ', ' nonillion ',
    ' decillion ', ' undecillion ',
    ' duodecillion ' );
    l_num varchar2(50);
    l_return varchar2(4000);
    begin
    num1:=:my_mumber;
         p_number:=num1;
         l_num:=trunc( p_number );
    for i in 1 .. l_str.count
    loop
    exit when l_num is null;
    if ( to_number(substr(l_num, length(l_num)-2, 3)) <> 0 )
    then
    l_return := to_char(
    to_date(
    substr(l_num, length(l_num)-2, 3),
    'J' ),
    'Jsp' ) || l_str(i) || l_return||'Rupees';
    end if;
    l_num := substr( l_num, 1, length(l_num)-3 );
    end loop;
    return l_return;
    end;
    and
    2)
    select to_char(to_date(floor(1234.99),'J'),'Jsp')||' Rupees and '||to_char(to_date((1234.99-(floor(1234.99)))*100,'J'),'Jsp')||' Paise' from dual;
    kindly help me.
    Thanks & Regards
    Vishnu

    Common question.
    But you will have realised that already if you'd bothered to search the forum...
    http://forums.oracle.com/forums/search.jspa?threadID=&q=number+to+word&objID=f75&dateRange=all&userID=&numResults=30

  • How to Count number of words in a file....

    Hi Experts,
    I have uploaded the text file, from the application server, like this: 
    call function 'GUI_UPLOAD'
      exporting
        filename = LV_ip_FILENAME
      tables
        data_tab = LT_FILETABLE.
    The text file contains some number character words....  like "sap labs india..... "
    Now, I wanted to count number of words in an internal table  LT_FILETABLE....  can anybody help me?

    Hi,
    Special Characters in Regular Expressions
    The following tables summarize the special characters in regular expressions:
    Escape character
    Special character Meaning
    Escape character for special characters
    Special character for single character strings
    Special character Meaning
    . Placeholder for any single character
    C Placeholder for any single character
    d Placeholder for any single digit
    D Placeholder for any character other than a digit
    l Placeholder for any lower-case letter
    L Placeholder for any character other than a lower-case letter
    s Placeholder for a blank character
    S Placeholder for any character other than a blank character
    u Placeholder for any upper-case letter
    U Placeholder for any character other than an upper-case letter
    w Placeholder for any alphanumeric character including _
    W Placeholder for any non-alphanumeric character except for _
    [ ] Definition of a value set for single characters
    [^ ] Negation of a value set for single characters
    [ - ] Definition of a range in a value set for single characters
    [ [:alnum:] ] Description of all alphanumeric characters in a value set
    [ [:alpha:] ] Description of all letters in a value set
    [ [:blank:] ] Description for blank characters and horizontal tabulators in a value set
    [ [:cntrl:] ] Description of all control characters in a value set
    [ [:digit:] ] Description of all digits in a value set
    [ [:graph:] ] Description of all graphic special characters in a value set
    [ [:lower:] ] Description of all lower-case letters in a value set
    [ [:print:] ] Description of all displayable characters in a value set
    [ [:punct:] ] Description of all punctuation characters in a value set
    [ [:space:] ] Description of all blank characters, tabulators, and carriage feeds in a value set
    [ [:unicode:] ] Description of all Unicode characters in a value set with a code larger than 255
    [ [:upper:] ] Description of all upper-case letters in a value set
    [ [:word:] ] Description of all alphanumeric characters in a value set, including _
    [ [:xdigit:] ] Description of all hexadecimal digits in a value set
    a f
          v Diverse platform-specific control characters
    [..] Reserved for later enhancements
    [==] Reserved for later enhancements
    u2192 More
    Special characters for character string patterns
    Special character Meaning
    Concatenation of n single characters
    {n,m} Concatenation of at least n and a maximum of m single characters
    {n,m}? Reserved for later enhancements
    ? One or no single characters
    Concatenation of any number of single characters including 'no characters'
    *? Reserved for later enhancements
    + Concatenation of any number of single characters excluding 'no characters'
    +? Reserved for later enhancements
    | Linking of two alternative expressions
    ( ) Definition of subgroups with registration
    (?: ) Definition of subgroups without registration
    1, 2, 3 ... Placeholder for the register of subgroups
    Q ... E Definition of a string of literal characters
    (? ... ) Reserved for later enhancements
    for more details please refer the following,
    [http://help.sap.com/abapdocu_70/en/ABENREGEX_SYNTAX_SIGNS.htm]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/902ce392-dfce-2d10-4ba9-b4f777843182?QuickLink=index&overridelayout=true]
    Thanks,
    Renuka S.

  • How do I divide a paragraph to lines a certain number of words?

    Hello,
    I have written a class that is supposed to basically, divide the number of paragraphs (in this case separated by newlines) to lines with 10 words or less, meaning each line has 10 words until the last line, which might have fewer words.
    I am using jre 1.3, and in my assignment at work I don't have the choice of changing it to a higher jre. So, I have to use 1.3.
    I have explained in the code what I want to do, and what I have done. Right now, my problem is in the last for loop, where I wish to take all the words, divide them to 10-word (or less for the last line) sets and add them to the String object line. Afterwards, I'd like to add these 10 words to the Vector lines. As of now, the individual words are getting added to the Vector, instead of lines.
    So, basically what I need to do is, count up to 10 words, add them to String line, and when this is finished (which is not the case now), add line to the Vector lines.
    Any help will be greatly appreciated. I am really confused on how to implement this part of the code.
    Here's the code:
    import java.util.StringTokenizer;
    import java.util.Vector;
    public class StringTester {
         public static void main(String[] args) {
              // TODO Auto-generated method stub
            String str = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
                "recent criticism by predecessor Dick Cheney that moves by the Obama " +
                "administration had put the United States at risk, telling CNN on Tuesday " +
                "that the former vice president was dead wrong.\n"+
                "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
                "Wolf Blitzer. This administration -- the last administration left us in a " +
                "weaker posture than we've been any time since World War II: less regarded " +
                "in the world, stretched more thinly than we ever have been in the past, " +
                "two wars under way, virtually no respect in entire parts of the world.\n"+
                "I guarantee you we are safer today, our interests are more secure today than " +
                "they were any time during the eight years of the Bush administration."+
                "In an interview with CNN's John King last month, Cheney said President Obama " +
                "had been making some choices that in my mind will raise the risk to the " +
                "American people of another attack.");
            //Basically, what I want to do is divide each of these paragraphs to lines
              //with 10 or less words.  That is, each line has 10 words until the last line
              //which might have fewer words.     
            StringTokenizer st = new StringTokenizer(str, "\n");
            //1. Take each token (which is a paragraph)
            //2. count the number of words it has
            //3. count up to 10 words, until the word count has reached the
            //total number of words on each paragraph, and each of the ten words to a line.
            Vector paragraphs = new Vector();
            while (st.hasMoreTokens()) {
               paragraphs.addElement(st.nextToken());
            Vector lines = new Vector();
            int wordCount = 0;
            Vector words = new Vector();
            for(int i=0;i<paragraphs.size();i++) {
               StringTokenizer st2 = new StringTokenizer((String)paragraphs.elementAt(i), " ");
               //the number of tokens in st2 represents the number of words (separated by space)
               //in each paragraph.
               while(st2.hasMoreTokens()) {
                   //then add each word to an arrayList
                    words.addElement(st2.nextToken());
            for(int i=0;i<words.size();i++) {
                 String line = "";
                while(wordCount < 10 * i) {
                     line = line.concat((String)words.elementAt(i));
                     wordCount+=10;
                System.err.println("adding line: "+line);
                lines.addElement(line);
    }

    I was bored at the time, im sure you can improve on this example immensely.
    import java.util.LinkedList;
    public class StoryClass {
         private final String storyOne = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
                "recent criticism by predecessor Dick Cheney that moves by the Obama " +
                "administration had put the United States at risk, telling CNN on Tuesday " +
                "that the former vice president was dead wrong.\n"+
                "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
                "Wolf Blitzer. This administration -- the last administration left us in a " +
                "weaker posture than we've been any time since World War II: less regarded " +
                "in the world, stretched more thinly than we ever have been in the past, " +
                "two wars under way, virtually no respect in entire parts of the world.\n"+
                "I guarantee you we are safer today, our interests are more secure today than " +
                "they were any time during the eight years of the Bush administration."+
                "In an interview with CNN's John King last month, Cheney said President Obama " +
                "had been making some choices that in my mind will raise the risk to the " +
                "American people of another attack.");
         public static void main(String[] args) {
              StoryClass sc = new StoryClass();
              sc.start(sc.storyOne);
         public void start(String story){
              LinkedList<String[]> allSentences = new LinkedList<String[]>();
              String[] paragraphs = getParagraphs(story);
              LinkedList<String[]> temp;
              for(String s : paragraphs){
                   temp = getSentences(s);
                   if(!temp.isEmpty())
                        allSentences.addAll(temp);
              for(String[] s : allSentences){
                   System.out.println(stringArrayToString(s));
         public String[] getParagraphs(String str){
              return str.split("\n");
         public LinkedList<String[]> getSentences(String sentence){
              LinkedList<String[]> list = new LinkedList<String[]>();
              int count = 0;
              String[] stringy = new String[10];
              String temp;
              for(String s : sentence.split("[ .,]")){
                   if((temp=s.trim()).length()==0)
                        continue;
                   if(count == 10){
                        list.add(stringy);
                        stringy = new String[10];
                        count = 0;
                   stringy[count++] = temp;
              if(count != 0){
                   String[] last = new String[count];
                   for(int i=0; i<count; i++){
                        last[i] = stringy;
                   list.add(last);
              return list;
         public String stringArrayToString(String[] s){
              if(s.length==0){
                   return "";
              StringBuilder sb = new StringBuilder();
              sb.append("[");
              for(int i=0; i<s.length; i++){
                   sb.append(s[i]).append(", ");
              sb.delete(sb.length()-2, sb.length());
              sb.append("]");
              return sb.toString();
    }Mel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to obtain the number of words of a protected pdf file that can't be converted into a word file?

    I need to get the number of words of pdf files. I usually convert them into word files to get the word count. Some pdf files are protected and can't be converted into word files. Is there another way to get the number of words of these protected pdf files? I use adobe professional XI Pro.

    Scroll through and read the answers available in the thread below. You may find the information helpful.
    Trying to write Javascript code to get word count
    Be well...

  • How i can count the number of words in a string?

    hi, i want to know how to count the number of words in a string
    e.g. java is a very powerful computer language.
    i will get 7 words.
    thanks in advance..

    Jverd, this has actually been answered, but due to an
    attack of goldie-itis, all the answers were hosed.
    The OP did get an answer, though.Yeah, I know. I just didn't know if he saw the answer before it went away.

  • Why is my PDF to Word conversion unreadable ?

    Why is my PDF to Word conversion  just code?

    Could you copy and paste a section of text from the original and from the converted file?

  • In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    iOS 7
    Seperate text size modification is no longer available in Safari Reafer.
    Use Settings.
    Settings >General > Text Size

  • How to Count total number of Words in PDF?

    I am used Adobe Acrobat javascript inbuilt function getPageNumWords(<pagenumber>) it return the number of words present in specified page, but while am copy and paste text content from PDF file to MS Word, Words count given by MS Word is little bit differ, so any one know in which aspect Acrobat count the words?
    Which words count result is correct?
    Shall is go with Acrobat Words count result or MS Words count result?
    But I want to count the total number of words in PDF file (my input is PDF file) else can I go with iText?
    Words count in PDf using iText is possible?

    Word counts are likely to vary a little according to how you count. For instance, are hyphenated words one or two words? What if the hyphen is at the end of a line? Do numbers count as words? Headers and footers? Captions?
    Generally, you just accept a slight variation. If you are counting words in a professional context, i.e. where payment is per word, you probably need a contractual definition of how words are to be counted; in the absence of one, I suggest you use Word.

  • Calling a file and counting the number of words in it-please help!!

    * @(#)WordCounterTwo.java
    * WordCounterTwo application
    * @author
    * @version 1.00 2007/11/17
    import java.util.Scanner;
    public class WordCounterTwo {
    public static void main(String[] args) {
         Scanner keyboard = new Scanner(System.in);
         String fileName;
         int countWords;
         System.out.println("Please enter the name of the file: ");
         fileName = keyboard.nextLine();
         System.out.println(countWords.lastIndexOf());
    }

    I am getting error message as follows:
    cannot find symbol constructor StringTokenizer() on line
    I am asking the user to enter the name of a file, and the output is supposed to display the number of words in the file that chosen. I'm not sure if I am going about this right way, and not sure why I am getting the erorr messages.
    * @(#)WordCounter.java
    * WordCounter application
    * @author
    * @version 1.00 2007/11/17
    import java.util.Scanner;
    import java.util.StringTokenizer;
    public class WordCounter {
        public static void main(String[] args) {
             String sentence;
             Scanner keyboard = new Scanner(System.in);
             StringTokenizer words = new StringTokenizer();  //line 17
             int numberWords;
             System.out.println("Please enter a sentence");
             sentence = keyboard.nextLine();
             sentence = words.nextToken();
             while (words.hasMoreTokens())
                  numberWords++;
             System.out.println(numberWords);
    }

  • Can I limit the number of words in text fields?

    I am creating a fillable form using Adobe Acrobat XI.  I know how to limit the character count in a text field, but my client would prefer that the field limit the actual number of words.  Is there a way to do this?
    Thank you!
    Jeanne

    Yes, it is possible, but it requires using a custom-made script.

  • Write number in words (using Oracle)

    Hello
    Can you please advise how to convert a number to word in Oracle?
    I am aware of using following but this has limitation of using number till 5373484
    select to_char(to_date('2013', 'j'), 'jsp') as "Date in Words" from dual
    Thanks in advance,
    Tinku

    Hi, Tinku,
    See this Tom Kyte page. It shows how to insert "billion", "trillion" etc. into the strings that 'Jsp' provides. Basically, you only have to spell the first thousand numbers, that is, up to 3 digits. The next 3 digits just repeat the pattern, with "thousand" appended to the end. The 3 digits after that just repeat the pattern again, with "million" concatenated, the 3 digits after that have "billion" (at least in the USA), and so on.
    The same page also shows spelling functions for French and Portuguese.

Maybe you are looking for