Re: RE: [PEAR] [ANNOUNCEMENT] Numbers_Words-0.7.1 (beta) Released.
| From: | David Costa | Date: | Tue, 25 May 2004 13:56:32 +0000 |
| Subject: | Re: RE: [PEAR] [ANNOUNCEMENT] Numbers_Words-0.7.1 (beta) Released. | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29631@lists.php.net to get a copy of this message | ||
On May 25, 2004, at 3:48 PM, Antonio Carlos Venancio Junior wrote:
This is not a problem, if you convert VX that is not a valid numeral so it's your fault I assume. Same for VIIII. It will return you a rough guess, which cannot be accurate if you pass an invalid numeral. toNumber expects a valid Numeral as input. Of course if this is bad for your personal use, feel free to fork your own version and do it your way, by all means this is something you can do.On May 25, 2004, at 3:20 PM, Antonio Carlos Venancio Junior wrote: snipThat are only two examples of _wrong_ roman numbers, because 'VX' doesn't exists and its computed as a 5 (five). And the correct form of a nine (9) is 'IX' and not 'VIIII'.I don't control that, it's part of pearwebSo, we are missing a link to that path here:---------- http://pear.php.net/package/Numbers_Roman----------????? Sorry but the package is very simple and I don't think that is slowed down by anything. To Number works fine for me so I don't understand what we are trying to avoid.I'll ask your permition to change some lines in your code to make it faster and "validate" the roman numbers to avoid things like "Numbers_Roman::toNumber('VX')" or "Numbers_Roman::toNumber('VIIII')" and so on.
Because last time I checked I was the lead in this package.and BTW I don't think you can change lines on my code :DWhy do you think that? ;D~
Regards,David Costa, http://DotGeek.org http://pear.php.net/user/gurugeek