Mailinglisten-Archive |
Sorry, war was falsch:
> > >es soll immer 25.00 oder 25.98 vom format her rauskommen.
>
> $format = sprintf("%01.2f", $preis);
> echo $preis;
Natürlich:
$format = sprintf("%01.2f", $preis);
echo $format;
>
> Gruss Andi
>
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_infosoc.uni-koeln.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
php::bar PHP Wiki - Listenarchive