[futurebasic] Re: [FB] Roman Numerals

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2000 : Group Archive : Group : All Groups

From: "Steven J. Stratford" <sstrat@...>
Date: Thu, 31 Aug 2000 20:55:27 -0500
On a date/time in the near or far past, I received an email from Joe Lewis
Wilkins <PepeToo@...> that said something like this:

> 
> That IS the quickest way to see if something works as advertised.  Use
> outrageous
> parameters.  If it works with them, it will probably work with more reasonable
> ones as well.
> 
> Of course, my Input was kind of stupid.  About the only thing that ever
> appears in
> Roman Numerals are dates, and who writes dates 1,996?; now that WOULD be a
> Y"every"K problem, but I suspect the routine should filter input for commas,
> periods and letters, in which case maybe it should be "Integer to Roman
> Numeral"
> and vice versa, rather than Decimal.  Does the Input for Roman filter for
> Input?
> 

Nah, it was just a quickie program I thought I'd plug in to my CGI Framework
on a lark. (The original program posted by Jay didn't either...) I did fix
it so it only accepts input between 0 and 3389, the range of the original
program. No filtering for non-numeric characters, it just takes the VAL() of
whatever ascii string comes through. That's why 1,234,567 was converted to
Roman Numeral I because the VAL("1,234,567") = 1.

--Steve

_____________________________
Steven J. Stratford, InterNetyx.com
Visit The CGI Store for Mac/WebStar Servers!
http://www.internetyx.com
Need custom CGI programming for Mac/WebStar?
Email me: sstrat@...
_____________________________