Is it really this hard to print currency values?

dunbarx at aol.com dunbarx at aol.com
Sun Jul 29 12:27:24 EDT 2012


Hi.


I wrote a checkWriting stack in HC about 25 years ago. No modulo, just text parsing. It is compact and utterly basic. If nobody else replies in the next day, I will pull it from my office and send you the code. It is just chunk engineering. Fun stuff.


Craig Newman



-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Jul 29, 2012 12:09 pm
Subject: Is it really this hard to print currency values?


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