Figures to Words conversion

Hi there !!!
I want a code to convert numbers into words.
eg. 125002.45 should give me the output :
Rupees One Lack Twenty Five Thousand and Two and Paise Forty
Five Only
Please send the answer asap as it is urgent !!!
Regards,
Manish.

I remembered seeing a similar issue come up in the PL/SQL forum.
This link should help you out:
Re: calling a url from a pl/sql proc

Similar Messages

  • Problem with displaying figures in words

    dear members....I've used the Julian Date trick to display the figures in words n it worked very well as far as figures were in positive numbers, but it wasted alot of time of me when it was displaying error while figure was in negative(below to zero)numbers, can any body tell me that how can I fix this problem in a way that it should display the whole value in words as it displays to positive figures but with a prefix of "Minus" in case of a negative number??? I've tried the condition like this
    IF :val > 0.....
    but not fruitful,
    plzzz tell me some solution,thanx,good bye.

    You can use this code and try your requirements.
    SQL> create or replace
    2 function spell_number( p_number in number )
    3 return varchar2
    4 -- original by Tom Kyte
    5 -- modified to include decimal places
    6 as
    7 type myArray is table of varchar2(255);
    8 l_str myArray := myArray( '',
    9 ' thousand ', ' million ',
    10 ' billion ', ' trillion ',
    11 ' quadrillion ', ' quintillion ',
    12 ' sextillion ', ' septillion ',
    13 ' octillion ', ' nonillion ',
    14 ' decillion ', ' undecillion ',
    15 ' duodecillion ' );
    16 l_num varchar2(50) default trunc( p_number );
    17 l_return varchar2(4000);
    18 begin
    19 for i in 1 .. l_str.count
    20 loop
    21 exit when l_num is null;
    22
    23 if ( substr(l_num, length(l_num)-2, 3) <> 0 )
    24 then
    25 l_return := to_char(
    26 to_date(
    27 substr(l_num, length(l_num)-2, 3),
    28 'J' ),
    29 'Jsp' ) || l_str(i) || l_return;
    30 end if;
    31 l_num := substr( l_num, 1, length(l_num)-3 );
    32 end loop;
    33
    34 -- beginning of section added to include decimal places:
    35 if to_char( p_number ) like '%.%'
    36 then
    37 l_num := substr( p_number, instr( p_number, '.' )+1 );
    38 if l_num > 0
    39 then
    40 l_return := l_return || ' point';
    41 for i in 1 .. length (l_num)
    42 loop
    43 exit when l_num is null;
    44 if substr( l_num, 1, 1 ) = '0'
    45 then
    46 l_return := l_return || ' zero';
    47 else
    48 l_return := l_return
    49 || ' '
    50 || to_char(
    51 to_date(
    52 substr( l_num, 1, 1),
    53 'j' ),
    54 'jsp' );
    55 end if;
    56 l_num := substr( l_num, 2 );
    57 end loop;
    58 end if;
    59 end if;
    60 -- end of section added to include decimal places
    61
    62 return l_return;
    63 end spell_number;
    64 /

  • 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?

  • How to convert Amount which is in figure to words

    How to convert Amount which is in figure to words like :
    Rs 1005.70   into   'Rupees One Thousand Five and 70 Paise'
    Thanks
    kumar n

    hiii
    use FM
    SPELL_AMOUNT
    WA_AMOUNT = '10000'.
    CALL FUNCTION 'SPELL_AMOUNT'
           EXPORTING
                AMOUNT    = WA_AMOUNT
                CURRENCY  = PWAERS
                FILLER    = SPACE
                LANGUAGE  = 'E'
           IMPORTING
                IN_WORDS  = WA_SPELL
           EXCEPTIONS
                NOT_FOUND = 1
                TOO_LARGE = 2
                OTHERS    = 3.
    regards
    twinkal

  • Weird problems of figures with word to pdf conversion

    Platform: Windows Vista
    Word 2007
    Acrobat 9
    Q: I have some wmf format vector figures inserted into word file. When I convert the word file into pdf format using the built-in pdfmaker button in the word menu, the vector graphics all become bitmap type. If I use print to pdf commond, the graphics are still vector format. Because I want to retain the Heading markers and other bookmarkers in the converted pdf file, I prefer using the pdfmaker for the conversion.
    Does anyone know how to fix it? it used to work in my old computer with acrobat 8 and word 2003. Not sure whether it is a compatability issue.

    You may want to be open to issues of WORD 2007, particularly if using a docx format. It may not be the issue you are having, but I have found problems with WORD itself for graphics. In some cases, it will take a nice graphic and split it into parts when creating a PDF. I am not sure what all the issues are, but WORD 2007 seems to be part of the problem, not just Acrobat. In fact, I have seen WORD take a vector graphic and change the fonts to a graphic, rather then leave them as a font in such a graphic - that was with a docx file. I am not saying WORD is the problem, but be open to alternate explanations of what is going on.

  • Help with Pages / Word conversion, please

    I am trying to use iPad to take meeting notes. I've been using Word for a while, and storing notes in Google Drive for fast access.
    I ran into four problems so far:
    It appears Word Outline mode is not supported. Probably nothing I can do here. But if there's a workaround, I'd love to know.
    If I use some common fonts (like Tahoma) to create Word document, the conversion to pages will preserve formatting (bold and italic), but the conversion from pages will lose it. Some other fonts (Helvetica) seem to preserve formatting OK. Is there a fix, or should I just use Helvetica everywhere ?
    This is important to me: If I have spaces in the name of the file, they get removed on conversion, e.g. "May 14 meeting notes" become "may14meetingnotes". This is very annoying, is there a way around it ?
    For some reason, Google Docs viewer chokes on .docx files converted by Pages. The same files open fine in Word, and if re-uploaded open fine in Google Doc Viewer. Again, any fix ?
    If you can recomment an alternate, inexpensive or freeware rich text editor that can create .doc or .rtf files which have better Word and Google Drive compatibility, I'd appreciate that. What I am primarily looking for is basic formatting (bold / colors, even italics aren't important), outlining (bullets, at least), and search function. Tables would be great but not necessary.
    CloudOn does support many more functions, but it's slow to start, and last time I checked it only worked online. I need to be able to type things offline.
    Thanks !

    You are more likely to get an answer if you post in the iWork for iOS forum at
    https://discussions.apple.com/community/app_store/iwork_for_ios
     Cheers, Tom 

  • Maintaining Links in a PDF to Word Conversion

    Is it possible to convert a PDF to Word using Acroabt X Pro so that all of the links in the PDF will work in the Word file?  The PDF was created from FrameMaker 9 files and contains many internal cross references. When I perform the conversion, the layout of the Word file looks great, but none of the links work.

    Not possible.

  • Key figures with currency conversion showing weird values.

    Hi Experts,
    I have a variable screen,
    User can key in Target Currency, and Month.
    Say,
    (Scenario 1) User keys in Target Currency "MYR", and Month "4"
    The report will show
    Jan| Feb| March| April| May| June| ...
    2| 3| 5| 7| 0| 0| 0 ...
    This is correct.
    (Scenario 2) User keys in Target Currency "USD", and Month "4"
    The report will show
    Jan| Feb| March| April| May| June| ...
    2| 3| 5| 7| 3| 5| 7 ...
    This is wrong, should not show figures for month May and onwards.
    (Scenario 3) User keys in Target Currency "SGD", and Month "4"
    The report will show
    Jan| Feb| March| April| May| June| ...
    1| 2| 3| 4| 0| 0| 0 ...
    This is correct.
    *In the infoprovider, the key figure is tied to currency "MYR".
    In developement system, i replicated the exchange rate table, and the problem (Scenario 2) is solved.
    In test system, i replicated the exchange rate table, and the problem (Scenario 2) is still there.
    I am not sure what is happening here.
    Please could you please kindly advise.
    Thanks.
    Tee

    There appear to be two factors happening here.. one is how you have your query restrictions set up, and the other is the currency translation method that you are using. What results a currency translation provides depends on both the translation key definition AND the availability of a valid currency translation for the appropriate period.
    First, review transaction RSCUR and see how your currency translation is defined.
    Then review transaction oB08 and see if there is a valid currency conversion factor during the affected time.
    Once you're certain all that is correct, review your query and how it is functioning. The fact that you wish to display months for which you do not wish to return data seems to indicate your 0CALMONTH2 restriction is not set up properly.

  • RoboHelp HTML Version X5: Word Conversion Issues

    Hello,
    My company is usually working on FM files and convert them with Mif2go but we happen to receive Word files that I need to convert through RH. The version we use is X5 and I am currently having a problem with the names of the generated HTML files. Normally I split my conversion per heading 1,2 and 3 and then obtain the resulting separat HTML files. The problem is that I have parts where I have the same header name several times but with different content. RH is correctly generating the different HTML files putting a 1, 2 or 3 at the end but in the TOC he only uses one of the HTML files with a generic name for the three different sections. To make it more clear, I have:
    I) INTRODUCTION (Heading 1)
    1) First Name (Heading 2)
    2)Surname (Heading 2)
    3) NIck Name (Heading 2)
    II) CONTENT (Heading 1)
    1) First Name (Heading 2)
    2)Surname (Heading 2)
    3) NIck Name (Heading 2)
    For the ones with the same name, RH creates for example First_Name.html and First_Name1.html but only uses the first one in the TOC for the both parts.
    Hope this is clear and that someone knows the answer to this problem.
    Best Regards

    This one has been raised several times and it's the same answer still. A project might work with Word 2013 64 bit but if it doesn't then you have to take into account that Microsoft themselves recommend the 32 bit version for compatibility with other programs.
    Is the 64 bit version offering you something that the 32 bit version does not?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Displaying figures in words

    hi gentlemen....I wanna display figures in reports alongwith there value in words e.g $100 will be displayed as One Hundred Dollars Only....plzzz tell me that how can I accomplish this job in reports6i???thanx

    1) select to_char( to_date(5373484,'J'),'Jsp') from dual;
    2) tkyte@TKYTE816> create or replace
    2 function spell_number( p_number in number )
    3 return varchar2
    4 as
    5 type myArray is table of varchar2(255);
    6 l_str myArray := myArray( '',
    7 ' thousand ', ' million ',
    8 ' billion ', ' trillion ',
    9 ' quadrillion ', ' quintillion ',
    10 ' sextillion ', ' septillion ',
    11 ' octillion ', ' nonillion ',
    12 ' decillion ', ' undecillion ',
    13 ' duodecillion ' );
    14
    15 l_num varchar2(50) default trunc( p_number );
    16 l_return varchar2(4000);
    17 begin
    18 for i in 1 .. l_str.count
    19 loop
    20 exit when l_num is null;
    21
    22 if ( substr(l_num, length(l_num)-2, 3) <> 0 )
    23 then
    24 l_return := to_char(
    25 to_date(
    26 substr(l_num, length(l_num)-2, 3),
    27 'J' ),
    28 'Jsp' ) || l_str(i) || l_return;
    29 end if;
    30 l_num := substr( l_num, 1, length(l_num)-3 );
    31 end loop;
    32
    33 return l_return;
    34 end;
    35 /
    Function created.
    ops$tkyte@DEV816>
    ops$tkyte@DEV816> select
    2 spell_number( 12345678901234567890123456789012345678 )
    3 from dual;
    SPELL_NUMBER(1234567890123456789012345678901234567
    Twelve undecillion Three Hundred Forty-Five decill
    ion Six Hundred Seventy-Eight nonillion Nine Hundr
    ed One octillion Two Hundred Thirty-Four septillio
    n Five Hundred Sixty-Seven sextillion Eight Hundre
    d Ninety quintillion One Hundred Twenty-Three quad
    rillion Four Hundred Fifty-Six trillion Seven Hund
    red Eighty-Nine billion Twelve million Three Hundr
    ed Forty-Five thousand Six Hundred Seventy-Eight

  • RH for Word conversions - version 5 to version 7

    Hi,
    We're considering an upgrade from RoboHelp 5.0.2 to RoboHelp
    7. Has anyone out there converted an RH 5 for Word project to
    RoboHelp for Word in version 7?
    If you have, what issues did you encounter?
    Thanks,
    Jim

    Hello, I converted just after the first of the year. Here are
    issues I encountered.
    1. you will need to replace any curly quotes (single or
    double) with straight quotes in your doc. Preferably shut this
    option off in Word under autocorrect. The utf-8 feature does not
    handle curly quotes. Basically when it encounters a curly quote, it
    deletes it in the output.
    2. the robohelp.dot file is set to automatically update the
    template. I'm told there is a way to shut this feature off, but I
    haven't found it yet. This is annoying.
    3. when you generate a chm, the dialog box to launch the chm
    comes up with an mskstor error. This may have something to do with
    the character sets. The chm still works, you just may not be able
    to launch it from the db.
    4. you will need to setup the properties to generate the chm
    file. the webhelp was fine. I lost the chm settings during the
    conversion.
    Otherwise, it is do-able. Hope this helps
    In one project, I have 12 docs. 951 topics. I generate chm
    for my testing, but deploy webhelp using RH7 for Word.

  • Displaying a figure in Words

    hi gentlemen....I wanna display figures in reports alongwith there value in words e.g $100 will be displayed as One Hundred Dollars Only....plzzz tell me that how can I accomplish this job in reports6i???thanx

    Popular question today.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1407603857650

  • HT2518 My word files from pc don't appear to have complete figures on word for mac

    Hello all,
    I'm a professor and I'm accepting word files for student assignments.
    When the assignments are made on a pc, when I receive them I get all the figures messed up.
    Same thing happened with my word files from my old PC to my new MacBook Air.
    It is very important for me to get this to work, because all my class notes are written on a pc word.
    They are all in docx format and have been authored with word 2010 I believe for the pc, and are opened by MacOffice 2011 on the mac.
    Note: I don't have any problems with my powerpoints - only the word files.
    Thanks in advance.

    A very good morning John,
    As far as I have understood, there is no problem with ExportPDF. You might need to check whether the fonts in your PDF are embedded or not.
    For this, open the PDF in Reader/Acrobat and go into File>Properties and click on Fonts tab to check for the same.
    If the fonts used in the PDF are not present in the system, then MS Word may not be able to retain the layout of the file.
    Please check.
    Regards,
    Anubha

  • 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

  • Acrobat X does not convert figures in Word docx that are linked visio objects correctly

    Acrobat X trial does not convert figures that are linked visio objects correctly.
    I have a Word 2007 document with a figure that is a linked Visio Object.
    Acrobat 9 converts the page with the figure correctly.
    Acrobat X givcoverts the page with a blank figure and a play button and selecting the play button gives an all black figure.

    Can you please share the word/visio file having issues in Acrobat X? Also please let us know the OS details on which you tried this file?
    -Vishal/Adobe.

Maybe you are looking for