Shouldn’t this work?
'1921’ romanNumber
I get an error index out of bounds.
Sincerely,
Joe.
Hi Joe!
Try this:
'MCMXXI' romanNumber
I would think that 1921 asRomanNumerals (or asRomanNumber) would be a cool method to write!
I checked but don't see one :).
Ron
-----Original Message----- From: beginners-bounces@lists.squeakfoundation.org [mailto:beginners- bounces@lists.squeakfoundation.org] On Behalf Of Joseph Alotta Sent: Friday, May 13, 2016 12:51 PM To: beginners@lists.squeakfoundation.org Subject: [Newbies] '1921' romanNumber
Shouldn’t this work?
'1921’ romanNumber
I get an error index out of bounds.
Sincerely,
Joe._______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Ron,
I would think that 1921 asRomanNumerals (or asRomanNumber) would be a cool method to write!
I checked but don't see one :).
1921 printStringRoman
I found that out by trying "roman" in the search field. The method finder said that no single method could go from 1921 to 'MCMXXI' but since it also didn't find #romanNumber I decided I had to look for method names instead.
-- Jecel
Hi Jecel,
HAHAHA! I figured it was there somewhere. I looked for omanNumber :).
Well done Jecel!
All the best,
Ron
From: Jecel Assumpcao Jr. Sent: Friday, May 13, 2016 3:33 PM
Ron,
I would think that 1921 asRomanNumerals (or asRomanNumber) would be a cool method to write!
I checked but don't see one :).
1921 printStringRoman
I found that out by trying "roman" in the search field. The method finder said that no single method could go from 1921 to 'MCMXXI' but since it
also
didn't find #romanNumber I decided I had to look for method names instead.
-- Jecel _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Ron Teitelbaum <ron <at> usmedrec.com> writes:
Hi Joe!
Try this:
'MCMXXI' romanNumber
I would think that 1921 asRomanNumerals (or asRomanNumber) would be a cool
method to write!
I checked but don't see one :).
Ron
1921 printStringRoman.
It's not referenced in MethodFinder, so it can't be found that easily.
Nicolas
Thanks Nicolas.
Jecel pointed it out too. I figured it had to be there but yeah I didn't see it either.
Ron
-----Original Message----- From: nicolas cellier Sent: Friday, May 13, 2016 4:33 PM
Ron Teitelbaum <ron <at> usmedrec.com> writes:
Hi Joe!
Try this:
'MCMXXI' romanNumber
I would think that 1921 asRomanNumerals (or asRomanNumber) would be
a cool method to write!
I checked but don't see one :).
Ron
1921 printStringRoman.
It's not referenced in MethodFinder, so it can't be found that easily.
Nicolas
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
On 13 May 2016 at 11:51, Joseph Alotta wrote:
Shouldn´t this work?
'1921´ romanNumber
I get an error index out of bounds.
Sincerely,
Joe.
Gee, whatever gave you that idea :-)
Try the following to see how it was intended:
'MCML' romanNumber.
If ever there was a method that needs renaming and a comment, #romanNumber is it.
- Dan
beginners@lists.squeakfoundation.org