Re: Numbers to Text
surely it should be the American incorrect way to write... :) "This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Ray Meade To: CF-Talk Sent: Mon Aug 07 19:13:49 2006 Subject: Re: Numbers to Text Actually, even in the U.S. the proper way to write the amount in text would be "One Hundred One Dollars and Fifty Cents". Anyone who says otherwise, needs to go back to school. > British 10^9 is one thousand million! > > Thank You, > Peter > > Peter J. MacDonald II > Creative Computing, Inc. > 100 Middle Street > Lincoln, RI 02865 > Phone: 401.727.0183 x123 > Fax: 401.727.4998 > Portable: 401.965.3661 > E-MAIL: [EMAIL PROTECTED] > Web Page: www.creatcomp.com > > > > -Original Message- > From: Jason Lotz [mailto:[EMAIL PROTECTED] > Sent: Friday, March 30, 2001 1:05 PM > To: CF-Talk > Subject: Re: Numbers to Text > > > Then what is 10^9 in British? > > - Original Message - > From: "Philip Arnold - ASP" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Friday, March 30, 2001 10:46 AM > Subject: RE: Numbers to Text > > > > > > Anyone know of a custom tag available or a means within CF to > convert > > > > numbers to text... 2 to two, 100 to one hundred, etc.? > > > > > > http://www.tei.or.th/eic/ under the free link. > > > > Nice tag apart from it's gramatical problems... > > > > 101 should be "one hundred and one" and not "one hundred one" > > > > Also, it treats billions in American and ignores British... so for > UK > sites > > it'd be wrong > > > > In case anyone is wondering, an American Billion is 1,000,000,000 > (10^9) > > while a British Billion is 1,000,000,000,000 (10^12) > > Similarly, an American Trillion is 10^12 while a British Trillion is > 10^18 > > > > The British version is seen as "Bi-million" as in "Million million" > and > > "Tri-million" as in "Million million million" - the further you take > this > > the bigger the different... > > > > Strange but often ignored number fact... > > > > Philip Arnold > > Director > > Certified ColdFusion Developer > > ASP Multimedia Limited > > T: +44 (0)20 8680 1133 > > > > "Websites for the real world" > > > > *> * > > This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom > they > > are addressed. If you have received this email in error please > notify > > the system manager. > > *> * > > > > > > > > > > > ~~ > Structure your ColdFusion code with Fusebox. Get the official book at > http://www.fusionauthority.com/bkinfo. cfm ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249048 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Numbers to Text
> > Nice tag apart from it's gramatical problems... Irony. Has anyone already suggested the UDF at http://www.cflib.org/udf.cfm?ID=40 ? ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249039 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Numbers to Text
Actually, even in the U.S. the proper way to write the amount in text would be "One Hundred One Dollars and Fifty Cents". Anyone who says otherwise, needs to go back to school. > British 10^9 is one thousand million! > > Thank You, > Peter > > Peter J. MacDonald II > Creative Computing, Inc. > 100 Middle Street > Lincoln, RI 02865 > Phone: 401.727.0183 x123 > Fax: 401.727.4998 > Portable: 401.965.3661 > E-MAIL: [EMAIL PROTECTED] > Web Page: www.creatcomp.com > > > > -Original Message- > From: Jason Lotz [mailto:[EMAIL PROTECTED] > Sent: Friday, March 30, 2001 1:05 PM > To: CF-Talk > Subject: Re: Numbers to Text > > > Then what is 10^9 in British? > > - Original Message - > From: "Philip Arnold - ASP" <[EMAIL PROTECTED]> > To: "CF-Talk" > Sent: Friday, March 30, 2001 10:46 AM > Subject: RE: Numbers to Text > > > > > > Anyone know of a custom tag available or a means within CF to > convert > > > > numbers to text... 2 to two, 100 to one hundred, etc.? > > > > > > http://www.tei.or.th/eic/ under the free link. > > > > Nice tag apart from it's gramatical problems... > > > > 101 should be "one hundred and one" and not "one hundred one" > > > > Also, it treats billions in American and ignores British... so for > UK > sites > > it'd be wrong > > > > In case anyone is wondering, an American Billion is 1,000,000,000 > (10^9) > > while a British Billion is 1,000,000,000,000 (10^12) > > Similarly, an American Trillion is 10^12 while a British Trillion is > 10^18 > > > > The British version is seen as "Bi-million" as in "Million million" > and > > "Tri-million" as in "Million million million" - the further you take > this > > the bigger the different... > > > > Strange but often ignored number fact... > > > > Philip Arnold > > Director > > Certified ColdFusion Developer > > ASP Multimedia Limited > > T: +44 (0)20 8680 1133 > > > > "Websites for the real world" > > > > *> * > > This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom > they > > are addressed. If you have received this email in error please > notify > > the system manager. > > *> * > > > > > > > > > > > ~~ > Structure your ColdFusion code with Fusebox. Get the official book at > http://www.fusionauthority.com/bkinfo. cfm ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249034 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Numbers to Text
That's US, the "and" is sternly tought to be dropped in CA schools and I'd image so for other metric countries. -Original Message- From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]] Sent: April 1, 2001 10:46 To: CF-Talk Subject: RE: Numbers to Text > If you include the and it implies a decimal. > > 101.50 is one hundred one and fifty But if you're ignoring decimals, then the "and" is still required - therefore if you want the words for "101" it should still be "one hundred and one" Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Numbers to Text
> If you include the and it implies a decimal. > > 101.50 is one hundred one and fifty But if you're ignoring decimals, then the "and" is still required - therefore if you want the words for "101" it should still be "one hundred and one" Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Numbers to Text
British 10^9 is one thousand million! Thank You, Peter Peter J. MacDonald II Creative Computing, Inc. 100 Middle Street Lincoln, RI 02865 Phone: 401.727.0183 x123 Fax: 401.727.4998 Portable: 401.965.3661 E-MAIL: [EMAIL PROTECTED] Web Page: www.creatcomp.com -Original Message- From: Jason Lotz [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 1:05 PM To: CF-Talk Subject: Re: Numbers to Text Then what is 10^9 in British? - Original Message - From: "Philip Arnold - ASP" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 10:46 AM Subject: RE: Numbers to Text > > > Anyone know of a custom tag available or a means within CF to convert > > > numbers to text... 2 to two, 100 to one hundred, etc.? > > > > http://www.tei.or.th/eic/ under the free link. > > Nice tag apart from it's gramatical problems... > > 101 should be "one hundred and one" and not "one hundred one" > > Also, it treats billions in American and ignores British... so for UK sites > it'd be wrong > > In case anyone is wondering, an American Billion is 1,000,000,000 (10^9) > while a British Billion is 1,000,000,000,000 (10^12) > Similarly, an American Trillion is 10^12 while a British Trillion is 10^18 > > The British version is seen as "Bi-million" as in "Million million" and > "Tri-million" as in "Million million million" - the further you take this > the bigger the different... > > Strange but often ignored number fact... > > Philip Arnold > Director > Certified ColdFusion Developer > ASP Multimedia Limited > T: +44 (0)20 8680 1133 > > "Websites for the real world" > > ** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > ** > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Numbers to Text
Philip, If you include the and it implies a decimal. 101.50 is one hundred one and fifty Thank You, Peter Peter J. MacDonald II Creative Computing, Inc. 100 Middle Street Lincoln, RI 02865 Phone: 401.727.0183 x123 Fax: 401.727.4998 Portable: 401.965.3661 E-MAIL: [EMAIL PROTECTED] Web Page: www.creatcomp.com -Original Message- From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 12:47 PM To: CF-Talk Subject: RE: Numbers to Text > > Anyone know of a custom tag available or a means within CF to convert > > numbers to text... 2 to two, 100 to one hundred, etc.? > > http://www.tei.or.th/eic/ under the free link. Nice tag apart from it's gramatical problems... 101 should be "one hundred and one" and not "one hundred one" Also, it treats billions in American and ignores British... so for UK sites it'd be wrong In case anyone is wondering, an American Billion is 1,000,000,000 (10^9) while a British Billion is 1,000,000,000,000 (10^12) Similarly, an American Trillion is 10^12 while a British Trillion is 10^18 The British version is seen as "Bi-million" as in "Million million" and "Tri-million" as in "Million million million" - the further you take this the bigger the different... Strange but often ignored number fact... Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Numbers to Text
Then what is 10^9 in British? - Original Message - From: "Philip Arnold - ASP" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 10:46 AM Subject: RE: Numbers to Text > > > Anyone know of a custom tag available or a means within CF to convert > > > numbers to text... 2 to two, 100 to one hundred, etc.? > > > > http://www.tei.or.th/eic/ under the free link. > > Nice tag apart from it's gramatical problems... > > 101 should be "one hundred and one" and not "one hundred one" > > Also, it treats billions in American and ignores British... so for UK sites > it'd be wrong > > In case anyone is wondering, an American Billion is 1,000,000,000 (10^9) > while a British Billion is 1,000,000,000,000 (10^12) > Similarly, an American Trillion is 10^12 while a British Trillion is 10^18 > > The British version is seen as "Bi-million" as in "Million million" and > "Tri-million" as in "Million million million" - the further you take this > the bigger the different... > > Strange but often ignored number fact... > > Philip Arnold > Director > Certified ColdFusion Developer > ASP Multimedia Limited > T: +44 (0)20 8680 1133 > > "Websites for the real world" > > ** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > ** > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Numbers to Text
Cool... I did find a CFX tag on the Alliare web site to do this... CFX_NUMBER2TEXT Has more functionality than I needed but it's working...:) thanks Jay -Original Message- From: Bryan LaPlante [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 11:49 AM To: CF-Talk Subject: Re: Numbers to Text This may not be what you are looking for, but I wrote a little check writer script for a bank once that translated the number column into dollars and cents as words on the client machine. This script was written pre IE4 before you could declair an array object by reference. All that the first function does is declaire the array object for moneyobj, the rest of the script does the work when you pass it a float or decimal number. -- script -- function moneyObj() { for (i = 0; i 0 && ((tens + hundreds) <= 9)) { printMoney += one[hundreds] + ' thousand '; } if ((tens + hundreds) > 9 && ((tens + hundreds) <= 19)) { printMoney += teen[hundreds] + ' thousand '; } if ((tens + hundreds) > 19 && ((tens + hundreds) < 100)) { printMoney += ten[tens] + ' ' + one[hundreds] + ' thousand '; } if (thousands != 0) { printMoney += one[thousands] + ' hundred '; } else { printMoney += ''; } if ((Tthousands + Hthousands) > 0 && ((Tthousands + Hthousands) <= 9)) { printMoney += one[Hthousands]; } if ((Tthousands + Hthousands) > 9 && ((Tthousands + Hthousands) <= 19)) { printMoney += teen[Hthousands]; } if ((Tthousands + Hthousands) > 19 && ((Tthousands + Hthousands) < 100)) { printMoney += ten[Tthousands] + ' ' + one[Hthousands]; } var UppCase = printMoney.charAt(0); var LowCase = printMoney.substring(1,printMoney.length); document.forms[0].dollarString.value = '' + printMoney + ' and ' + cents + '\/ 100'; document.write(UppCase + LowCase.toLowerCase() + ' and ' + cents + '\/ 100'); } -- End Script -- - Original Message - From: "Jay Wigginton" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 10:20 AM Subject: Numbers to Text > Anyone know of a custom tag available or a means within CF to convert > numbers to text... 2 to two, 100 to one hundred, etc.? > > thanks > Jay > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Numbers to Text
Thanks Paul... I found this on the Alliare web site also and had a little trouble with it at first... but have it in place and functioning... :) thanks Jay -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 12:06 PM To: CF-Talk Subject: Re: Numbers to Text > Anyone know of a custom tag available or a means within CF to convert > numbers to text... 2 to two, 100 to one hundred, etc.? http://www.tei.or.th/eic/ under the free link. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Numbers to Text
> > Anyone know of a custom tag available or a means within CF to convert > > numbers to text... 2 to two, 100 to one hundred, etc.? > > http://www.tei.or.th/eic/ under the free link. Nice tag apart from it's gramatical problems... 101 should be "one hundred and one" and not "one hundred one" Also, it treats billions in American and ignores British... so for UK sites it'd be wrong In case anyone is wondering, an American Billion is 1,000,000,000 (10^9) while a British Billion is 1,000,000,000,000 (10^12) Similarly, an American Trillion is 10^12 while a British Trillion is 10^18 The British version is seen as "Bi-million" as in "Million million" and "Tri-million" as in "Million million million" - the further you take this the bigger the different... Strange but often ignored number fact... Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Numbers to Text
> Anyone know of a custom tag available or a means within CF to convert > numbers to text... 2 to two, 100 to one hundred, etc.? http://www.tei.or.th/eic/ under the free link. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Numbers to Text
This may not be what you are looking for, but I wrote a little check writer script for a bank once that translated the number column into dollars and cents as words on the client machine. This script was written pre IE4 before you could declair an array object by reference. All that the first function does is declaire the array object for moneyobj, the rest of the script does the work when you pass it a float or decimal number. -- script -- function moneyObj() { for (i = 0; i 0 && ((tens + hundreds) <= 9)) { printMoney += one[hundreds] + ' thousand '; } if ((tens + hundreds) > 9 && ((tens + hundreds) <= 19)) { printMoney += teen[hundreds] + ' thousand '; } if ((tens + hundreds) > 19 && ((tens + hundreds) < 100)) { printMoney += ten[tens] + ' ' + one[hundreds] + ' thousand '; } if (thousands != 0) { printMoney += one[thousands] + ' hundred '; } else { printMoney += ''; } if ((Tthousands + Hthousands) > 0 && ((Tthousands + Hthousands) <= 9)) { printMoney += one[Hthousands]; } if ((Tthousands + Hthousands) > 9 && ((Tthousands + Hthousands) <= 19)) { printMoney += teen[Hthousands]; } if ((Tthousands + Hthousands) > 19 && ((Tthousands + Hthousands) < 100)) { printMoney += ten[Tthousands] + ' ' + one[Hthousands]; } var UppCase = printMoney.charAt(0); var LowCase = printMoney.substring(1,printMoney.length); document.forms[0].dollarString.value = '' + printMoney + ' and ' + cents + '\/ 100'; document.write(UppCase + LowCase.toLowerCase() + ' and ' + cents + '\/ 100'); } -- End Script -- - Original Message - From: "Jay Wigginton" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 10:20 AM Subject: Numbers to Text > Anyone know of a custom tag available or a means within CF to convert > numbers to text... 2 to two, 100 to one hundred, etc.? > > thanks > Jay > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists