Re: Floating values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://us2.php.net/manual/en/function.number-format.php

----- Original Message -----
From: Nunners <webmaster@xxxxxxxxxxxxxxxxx>
Date: Monday, October 18, 2004 7:03 am
Subject:  Floating values

> Simple question. 
> 
> 
> 
> I'm writing an accounting package, and have setup the MySQL 
> database with
> decimal(6,2) types for the amount of transactions etc.
> 
> 
> 
> Is there a way I can reproduce this in the php output?
> 
> 
> 
> i.e. the number sorted is 8.70 and when you output the value it 
> comes out as
> 8.7
> 
> 
> 
> The question is how do I add the .00?
> 
> 
> 
> Cheers
> 
> Nunners
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux