Is it really this hard to print currency values?
Bob Sneidar
bobs at twft.com
Mon Jul 30 13:37:34 EDT 2012
Crazy huh? I think there should be a function that extracts the numerical value of a string. Even better, the engine should simply assume a properly formatted currency is a number and deal with it.
My 2¢
Bob
On Jul 29, 2012, at 9:05 AM, Dr. Hawkins wrote:
> As I sat down to finally encode currency into my output, I pulled old
> answers from older questions and did more searches.
>
> Is it *really* this hard to output currency?
>
> To turn 123456.78 into $123,456.78, everything I'm finding would have
> me using modulo arithmetic to produce three values, with these three
> values being output in the string (4, actually, to allow values in the
> millions).
>
> Am I missing something obvious here?
> --
> The Hawkins Law Firm
> Richard E. Hawkins, Esq.
> (702) 508-8462
> HawkinsLawFirm at gmail.com
> 3025 S. Maryland Parkway
> Suite A
> Las Vegas, NV 89109
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list