Currency and percentage in numeric evaluation

xbury.cs at clearstream.com xbury.cs at clearstream.com
Mon Apr 11 09:14:42 EDT 2005


I just found in my stack folder a currency number formatting stack.
There is no author, no about, no idea who made it. 
But it came from my external stacks.

The idea is that if you can make a parser to make a currency format of any 
kind, this process
can be easily reversed to do the opposite...

So who made that stack? It's called "Currency.mc"

cheers
Xavier

On 11.04.2005 15:07:14 use-revolution-bounces wrote:
>Hi Richard:
>
>I put the following into the msg box
>
>put "12%" into holder
>put holder is a number
>
>The above returns returns false
>
>Regards .... Bob
>
>
>
>On Apr 10, 2005, at 9:00 AM, Richard Gaskin wrote:
>> I need to evaluate a large number of short strings to determine whether
>> they are numeric.  Some of these are percentages, and include the "%",
>> and others are currency and can contain "$". the Euro, Yen, or any
>> number of other signs.
>>
>> With dates we have a convenient test:  try to convert it, and if it
>> fails it will tell you why.
>>
>> But we have no such convenience with percentages and currency.  So what
>> is the most efficient (heck, I'd settle for reasonable efficient) way
>> to
>> determine if a string is numeric given the wide range of currency
>> formats in common use?
>>
>> --
>>   Richard Gaskin
>>   Fourth World Media Corporation
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution


-----------------------------------------
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE    Internet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.    The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.    END OF DISCLAIMER


More information about the use-livecode mailing list