|
Just say "One Five Zero and two five cents". All you do is load your amount into an array and check each element replacing the number with a word by using the number as an index to another array (or a SELECT group if you prefer). BTW using the word ONLY denotes there are no Cents (or Paise). And while I'm having my two Paise worth, I'm worried that these students are getting spoon fed solutions instead of really thinking it through. It's not going to help you later you know, do your own homework. Alistair -----Original Message----- From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On Behalf Of boothm@earth.goddard.edu Sent: Friday, November 12, 1999 5:59 AM To: RPG400-L@midrange.com Subject: Re: converting numeric into words Convert just the Rupees and not the paise so it says " One Hundred and Fifty and 25/100 Rupees only" Will that work for you? Please respond to RPG400-L@midrange.com Sent by: owner-rpg400-l@midrange.com To: cc: Subject: converting numeric into words Hi all I want a program for rupee word conversion.What I mean is I have a numeric quantity say 150.25.I wanna a routine that will take this as input and convert it into words as Rupees one fifty and paise twenty five only.I am working on a routine but it is giving problem if the quantity have decimal places. If anyone knows a method to do so please reply. Thanks in advance. Atul. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.