Re: [Rd] as.roman upper limit

2024-02-17 Thread Kurt Hornik
> Jonathan Carroll writes: Thanks. Fascinating ... I strongly suspect that when I wrote the code in 2006 the docs said the largest possible number was 3899. Of course, I should have added a comment on this with a pointer to the docs ... In any case, clearly

[Rd] as.roman upper limit

2024-02-13 Thread Jonathan Carroll
I was recently participating in a coding challenge which involved converting integers to Roman numerals. I knew R offers this functionality already via as.roman() and hoped to leverage that for a quick solution, but was surprised that one of the challenge's tests failed; conversion of the number