Shane- Thank you for the response. This works, I also changed the column type to numeric with a scale of 2 in SQL Server.
Thank you again. -Scott On Thu, 6 Jun 2002, Shane Wright wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi > > > $aprTemp = number_format($apr, 2); which in the case of 3.05 will return > > 305.00 and 300.00 for 3%. Anyone have a snippet to test and display > > properly so that 3% would be 3.00, etc. > > you could try this... > > $val = sprintf("%0.02f", $val); > > Cheers > > - -- > Shane > www.shanewright.co.uk > Public key: http://www.shanewright.co.uk/files/public_key.asc > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE8/58q5DXg6dCMBrQRApb0AJsFZ7WxZK5PRguKZqNbRndVUnkl/QCgpafj > VWVFBaJ9ysYxJqNP3Bxm2EI= > =zrZI > -----END PGP SIGNATURE----- > -- -------------------------------------------- [EMAIL PROTECTED] Now Playing: Moby - We Are All Made Of Stars generated by ProWeb 1.0 Beta Uptime 168 days c2002 Exton Communications -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php