Thanks Ruby Quiz!

123.to_slang == "a franklin, a jackson, three washingtons, and some jingle"

···

-----Original Message-----
From: Justin Collins [mailto:collinsj@seattleu.edu]
Sent: Wednesday, May 10, 2006 1:43 PM
To: ruby-talk@ruby-lang.org
Subject: Re: Thanks Ruby Quiz!

Kerry Buckley wrote:

On 10 May 2006, at 9:08 pm, Justin Collins wrote:

= Examples
123.to_english == one hundred and twenty-three

I know this is really nit-picky, but the "proper" way to say 123 is
"one hundred twenty-three." "And" is only used for decimal points:

I'm sure that says to_english, not to_american :wink:

Kerry

Good call on the distinction...if the OP could take that into
consideration...we need a to_american method as well... :slight_smile:

-Justin

This e-mail message may contain privileged and/or confidential information,
and is intended to be received only by persons entitled to receive such
information. If you have received this e-mail in error, please notify the
sender immediately. Please delete it and all attachments from any servers,
hard drives or any other media. Other use of this e-mail by you is strictly
prohibited.
All e-mails and attachments sent and received are subject to monitoring,
reading and archival by Seminis. The recipient of this e-mail is solely
responsible for checking for the presence of "Viruses" or other "Malware".
Seminis accepts no liability for any damage caused by any such code
transmitted by or accompanying this e-mail or any attachment.

It appears I opened a can of worms. I see why this was chosen as a ruby
quiz. It seems to elicit a lot of varying responses. Do you guys think
that the and should be removed except for floats?

Charlie Bowman
www.recentrambles.com

···

On Thu, 2006-05-11 at 05:48 +0900, Debaun, Steve [Seminis/2400] wrote:

123.to_slang == "a franklin, a jackson, three washingtons, and some jingle"

-----Original Message-----
From: Justin Collins [mailto:collinsj@seattleu.edu]
Sent: Wednesday, May 10, 2006 1:43 PM
To: ruby-talk@ruby-lang.org
Subject: Re: Thanks Ruby Quiz!

Kerry Buckley wrote:
> On 10 May 2006, at 9:08 pm, Justin Collins wrote:
>>>>
>>>> = Examples
>>>> 123.to_english == one hundred and twenty-three
>>>>
>>
>> I know this is really nit-picky, but the "proper" way to say 123 is
>> "one hundred twenty-three." "And" is only used for decimal points:
>
> I'm sure that says to_english, not to_american :wink:
>
> Kerry
>
Good call on the distinction...if the OP could take that into
consideration...we need a to_american method as well... :slight_smile:

-Justin

This e-mail message may contain privileged and/or confidential information,
and is intended to be received only by persons entitled to receive such
information. If you have received this e-mail in error, please notify the
sender immediately. Please delete it and all attachments from any servers,
hard drives or any other media. Other use of this e-mail by you is strictly
prohibited.
All e-mails and attachments sent and received are subject to monitoring,
reading and archival by Seminis. The recipient of this e-mail is solely
responsible for checking for the presence of "Viruses" or other "Malware".
Seminis accepts no liability for any damage caused by any such code
transmitted by or accompanying this e-mail or any attachment.

Charlie Bowman wrote:

Do you guys think that the and should be removed except for floats?

No.

Google shows about 54,200 hits on "one hundred and twenty three"
but only about 42,900 on "one hundred twenty three."

I can't imagine the justification for why "and" is only proper for floats. "One hundred and twenty three" is idiomatic English, both in the US and UK.

"In the year of our Lord, Seventeen Hundred and Seventy Six."

"Four score and seven years ago."

"Four and twenty blackbirds."

Just because you can also say "seventeen hundred seventy six," "one thousand seven hundred seventy six," "eighty seven" and "twenty four" doesn't make the former improper.

···

--

Ray

Charlie Bowman wrote:

It appears I opened a can of worms. I see why this was chosen as a ruby
quiz. It seems to elicit a lot of varying responses. Do you guys think
that the and should be removed except for floats?

When I was a kid, teachers laid heavy stress on this for some reason.

It was treated as a moral obligation, a physical law, and a
partiotic duty all wrapped up in one.

However, I've since heard that it's probably an American thing.

Hal

Ray Baxter wrote:

Charlie Bowman wrote:

Do you guys think that the and should be removed except for floats?

No.

Google shows about 54,200 hits on "one hundred and twenty three"
but only about 42,900 on "one hundred twenty three."

I can't imagine the justification for why "and" is only proper for floats. "One hundred and twenty three" is idiomatic English, both in the US and UK.

"In the year of our Lord, Seventeen Hundred and Seventy Six."

"Four score and seven years ago."

"Four and twenty blackbirds."

Just because you can also say "seventeen hundred seventy six," "one thousand seven hundred seventy six," "eighty seven" and "twenty four" doesn't make the former improper.

My original point was not that serious...it can be left as-is without a problem.

For more information than anyone probably needs:

-Justin