How to convert from value to word ?

Hi all,
I intend to convert from value into words such as 234.50 will be two hundred and thirty four and cents fifty. How should I code or any function will able to produce this ?
Please advise.
Rgds
Lim

Lim
The SP format modifier spells out part of a date - so does YEAR:
SQL> select to_char(sysdate,'YEAR') from dual
  2  /
TO_CHAR(SYSDATE,'YEAR')
TWO THOUSAND EIGHT
SQL> To spell out a money amount, you have to take a decimal number and break it into dollars and cents (both integers):
SQL> r
  1  declare
  2    amount number(10,2) := 12345.67;
  3    dollars integer;
  4    cents integer;
  5  begin
  6    dollars := floor(amount);
  7    cents := (amount - dollars) * 100;
  8    dbms_output.put_line(to_char(to_date(dollars,'J'), 'JSP') ||  ' dollars a
nd ' ||
  9        to_char(to_date(cents,'J'),'JSP') || ' cents');
10* end;
TWELVE THOUSAND THREE HUNDRED FORTY-FIVE dollars and SIXTY-SEVEN cents
PL/SQL procedure successfully completed.
SQL>Note that the spelling out is rather american (in UK we wouldn't add the hyphen and we would say twelve thousand three hundred AND forty five).
Using JSP means we are spelling out a Julian date (ie a number of days, which is allowed to get pretty large. But watch out - there is a limit (somwhere between 1 and 10 million) - ie the number of days between minimum date (4172 BC) and max date (around 31/12/9999).
HTH
Regards Nigel

Similar Messages

  • How to convert from pdf to word

    how to convert from pdf to word

    If you are using Adobe Acrobat please post here: http://forums.adobe.com/community/acrobat/creating__editing_%26_exporting_pdfs
    If you are using Adobe Reader and ExportPDF, please read this: http://forums.adobe.com/docs/DOC-1812

  • How do I convert from PDF to Word step by step instructions needed..am practically computer illiterate

    How do I convert from PDF to Word step by step instructions needed..am practically computer illiterate@

    Ok, fine. That isn't Acrobat, and that's why our instructions weren't much use. (But it's worth saying "I didn't have that option" rather than "it's not converting", we could end up wasting a lot of your time with the wrong stuff!)
    Anyway, the free Adobe Reader can't do this conversion without a subscription called either ExportPDF or PDF Pack. You may have had one in the past. Are you still paying for one?

  • How to create "convert from PDF to Word?"

    How to create "convert from PDF to Word?"

    Good day,
    To use the ExportPDF service, simply visit http://exportpdf.acrobat.com and click 'Sign in' at the top right corner.  Enter your Adobe ID (email address) credentials to log into the service.  As ExportPDF is web-based, you simply utilize the tool through your web browser.  After you're logged in, you should see the ExportPDF interface, with a button saying 'Select PDF file..' to get the process started.
    Please let us know if you have any questions.
    Kind regards,
    David

  • How do I convert from pdf to word? I see an option to do so, however, when I click on it, Ia box opens...

    when I try to convert from pdf to word, a box opens and suggests I am to click on (select) the file I want to convert. It sounds all well but it does not work. I really really just want my files back in word, all of them, no matter, because after having to reinstall windows 7 (done by techs) and me having to re-download all my HP drivers, and tools, and other software, which I imagine included adobe reader, now I see some pdf files won't open. It says, "access denied" and boy that really makes me wantt o scream. I am the ONLY user, it is my notebook, I am the administrator so I can't figure out why some files open and some don't. I can't ascertain any difference.
    I would be grateful for any help. This has become just too exhausting. After reinstalling sooooooooo much, then to have to go through this with what is a free application? I say I think not.
    This should NEVER happen with any free application and boy there is NO help to be found. They blow you off the phone fast telling you it's a free application. Then why are you putting in this kind of  stuff that it won't open? This is NOT a shared notebook, it's mine. I am the only user, personal use.
    HP probook, if anyone needs that info.
    Please, will someone help?
    I would be so grateful.
    thanks,
    Gina

    Gee, Pat, this is a  real big help.
    Nobody could possibly think anyone would ask for help without first trying to fix the issue oneself. Or maybe you do. I have opened the file and looked under security. I have changed it to owner-notebook (which is what the techs called me) and clicked accept but geepers it didn't work.
    Maybe someone else has an idea.
    Take Ownership of a File or Folder
    The above should be a link. At least I copied and pasted the link. I did what was stated in there. It isn't like brain surgery. But it is not working. I ended up being able to open some pdf files after transferring them from one partition category to another. I wish it was that easy as you seem to think.
    Thanks for the help. Have a great year.

  • Problems when converting from pdf to word

    I am a translator and I get most of my work in pdf files. So I convert the pdfs into words to be able to change the text and edit. However, when dcuments are converted from pdf to word I have found they become very unstable and difficult to work with to the point I usually end up not using the coverted file. Is there any place I can go for training about what to do with those documents? Can anyone relate to this problem?
    thanks

    Hi patryba,
    You can access ExportPDF here: Adobe Acrobat.com.
    Please let us know how it goes!
    Best,
    Sara

  • I need to send a file that i have converted from pdf to word to my pc

    i need to send a file that i have converted from pdf to word to my pc

    Converted how?  If using ExportPDF, then you should be able to download it from acrobat.com by using your Adobe ID.

  • Hi iam new to java can u tell me  how to convert from hashmap to string

    how to convert from hashmap to string

    Hi,
    This is not pure Java forum. Its more on JDBC and data connectivity to Orcle db from Java API.
    This link may answer your question:
    http://stackoverflow.com/questions/960807/hashmapkey-string-value-arraylist-returns-an-object-instead-of-arraylist
    Twinkle

  • After 4 attempts I am unable to convert from pdf to word - given a conversion error

    after 4 attempts I am unable to convert from pdf to word - i get a conversion erro message?

    Hi Perraralph,
    I'm sorry to hear you'd like to cancel your subscription.  You can find instructions on how to do so here: http://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-servi ces.html
    -David

  • Why am I only given the option to create a pdf when I want to convert from pdf to word document? My plan is the PDF pack.

    Why am I only given the option to create a pdf when I want to convert from pdf to word document? My plan is the PDF pack it should do it ¡

    Hi,
    I checked your account,you have an active PDF pack.
    You need to click on Export PDF to convert from PDF to word document.
    Regards,
    Florence

  • Why am I only given the option to create a pdf when I want to convert from pdf to word document?

    Why am I only given the option to create a pdf when I want to convert from pdf to word document?

    Hi,
    If you have PDF pack subscription you can avail all of the services like export PDF,create PDF & etc.
    Otherwise you have to purchase every service individually.
    Regards,
    Florence

  • I paid for the convertion from pdf to word and its not letting me???

    I paid for the convertion from PDF to word i received a confirmation number, but it is not converting, Why?????????

    Hi Rosa,
    I'd like to assist! Are you receiving a particular error message? I see you have verified your subscription...
    There is also this handy 'getting started' guide that may help.
    Looking forward to hearing back from you!
    Regards, Stacy

  • Convert from pdf to word?

    i cant convert from pdf to word - when i sign in it greys out the conversion setting so i cant use it - what am i missing?

    I have paid upfront for adobe acrobat pro x1 and I have wasted a ton of time trying to convert a simple file from pdf to word (it worked a wk ago so what has changed?). All I see is a bunch of people having problems and no real solutions, and I am coming up to 24hrs!!
    I wonder if customer service from adobe (does this exist?) will jump in any time soon to help resolve?

  • Re: How to converting from PL/SQL query to T-SQL query

    How to converting from PL/SQL query to T-SQL query... Its Urgent

    Download the
    SQL Server Migration Assistant for Oracle.  It will convert whole Oracle databases, or single queries or PL/SQL stored procedures.
    With caution that If your database is using Collation which is case sensitive SSMA will not work.SSMA doesnt guarantees 100% for conversion of Queries/stored proc /database if it fails to do so for some queries you will have to do it manually.
    But you can try
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • How to copy NCLOB value(Contains Word Document) into file system

    How to copy NCLOB value(Contains Word Document) into file system or display in sqlplus

    The UTL_FILE package will write it only to text file not(NCLOB Value[containts images as well as text])

Maybe you are looking for