Rev. Steve Willis Displaying floating-point numbers
Jul 07, 2010; 14:07
Rev. Steve Willis
Displaying floating-point numbers
Hi!
I have a PHP page that displays the results of some calculations.
I want them all to display with 2 numbers to the right of the decimal point, even if the result is a whole number with no fractional component (e.g., 4.00 instead of 4, 3.10 instead of 3.1).
I've looked through the PHP functions reference and cannot find anything that will produce the desired result.
Any suggestions?
Thanks!
Steve -- Rev. Steve Willis Director of Software Development Life Christian University P.O. Box 272360 Tampa, Fl 33688 (520) 891-3721
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/GoLive/Browse/ Manage your subscription: http://www.ListSearch.com/GoLive/
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!