You could use number_format..

$f = 25.50 * 3

$s = number_format($f,2,'.',NULL);

Lang

Richard Cook wrote:

> I have a problem with the following
> 
> when i multiply for example 25 . 50 * 3 i get 76 . 5 how would i get PHP
> to recognise the last 0 ie make it 76 . 50
> 
> Any ideas?
> 
> 
> Regards
> 
> R

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

Reply via email to