Talk:Roman numerals/Encode: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Perl problem: new section)
Line 10: Line 10:
:What are our choices? --[[User:Mwn3d|Mwn3d]] 09:09, 1 April 2008 (MDT)
:What are our choices? --[[User:Mwn3d|Mwn3d]] 09:09, 1 April 2008 (MDT)
:: Project Euler had a similar [http://projecteuler.net/index.php?section=problems&id=89 task], where they addressed possible rules in a [http://projecteuler.net/index.php?section=faq&ref=roman_numerals FAQ]. Wikipedia has also a section on special [http://en.wikipedia.org/wiki/Roman_numerals#XCIX_vs._IC rules]. I guess the safe way is the way all examples so far do it. But maybe specifying it isn't important (I don't know which similarities/dissimilarities between different languages this task should highlight). --[[User:Dirkt|Dirkt]] 15:38, 1 April 2008 (MDT)
:: Project Euler had a similar [http://projecteuler.net/index.php?section=problems&id=89 task], where they addressed possible rules in a [http://projecteuler.net/index.php?section=faq&ref=roman_numerals FAQ]. Wikipedia has also a section on special [http://en.wikipedia.org/wiki/Roman_numerals#XCIX_vs._IC rules]. I guess the safe way is the way all examples so far do it. But maybe specifying it isn't important (I don't know which similarities/dissimilarities between different languages this task should highlight). --[[User:Dirkt|Dirkt]] 15:38, 1 April 2008 (MDT)

== Perl problem ==

The use of the works_with template is interacting badly with the semantic wiki markup, but I'm not sure how to unpick the mess so I'll just flag this up for now. –[[User:Dkf|Donal Fellows]] 08:46, 30 July 2010 (UTC)

Revision as of 08:46, 30 July 2010

The Java example does not enforce the requirement that the parameter for the conversion function must be a positive integer. Enforcement of such a requirement should result in an error condition, such as an exception, rather than simply no output when a value less than 1 is passed to the function.--Waldorf 21:14, 31 March 2008 (MDT)

Fixed. --Mwn3d 21:22, 31 March 2008 (MDT)

400

I'm pretty sure CD is 400. If you look at wp:Roman_numerals#Modern_Roman_numerals it shows it. --Mwn3d 21:20, 31 March 2008 (MDT)

Spec?

Roman numerals are by no means standardized. You should reference the particular brand of encoding you wish to support. --IanOsgood 08:53, 1 April 2008 (MDT)

What are our choices? --Mwn3d 09:09, 1 April 2008 (MDT)
Project Euler had a similar task, where they addressed possible rules in a FAQ. Wikipedia has also a section on special rules. I guess the safe way is the way all examples so far do it. But maybe specifying it isn't important (I don't know which similarities/dissimilarities between different languages this task should highlight). --Dirkt 15:38, 1 April 2008 (MDT)

Perl problem

The use of the works_with template is interacting badly with the semantic wiki markup, but I'm not sure how to unpick the mess so I'll just flag this up for now. –Donal Fellows 08:46, 30 July 2010 (UTC)