For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2004 > Re: [PEAR-DEV] RE: [PEAR] [ANNOUNCEMENT] Numbers_Words-0.7.1 (beta)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-DEV] RE: [PEAR] [ANNOUNCEMENT] Numbers_Words-0.7.1 (beta)
Klaus Guenther

2004-05-25, 12:36 pm

David Costa wrote:

>
> 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.


VIIII used to be an alternate version of 9. Same with IIII for 4. At any
rate, it's helpful if the parser properly understands it.

See these pages:

http://www.geocities.com/Athens/Olympus/3296/quare9.htm
http://www.livius.org/le-lh/legio/ix_hispana.html
http://www.livius.org/le-lh/legio/iiii_macedonica.html

I assume the same applies to XXXX, LXXXX, CCCC and DCCC, as well.

Klaus

> 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.
>
>
>
> Because last time I checked I was the lead in this package.
>
> Regards,
> David Costa, [url]http://DotG.org[/url]
> [url]http://pear.php.net/user/gurug[/url]
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com