|
I have had a request to format negative dollar values as -$123.45
I have been using the PHO number_format as in the following code fragment;
$" . number_format(AMOUNT, 2)
This provides a result of $-123.45
I thought this would be easy ... but google and w3schools have not helped
... yet
Any suggestions ?
Thank you
Don Brown
______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.