phpbar.de logo

Mailinglisten-Archive

[php] Runden

[php] Runden

Mike Greubel _(at)_work mike.greubel_(at)_pro-entertain.de
Thu, 26 Oct 2000 12:08:47 +0200


RE: [php] Runden
RE: [php] Runden> -----Original Message-----
> From: Mike Ruebsamen [mailto:mtr_(at)_phpwelt.de]
> Sent: Thursday, October 26, 2000 10:56 AM
> To: php_(at)_php-center.de
> Subject: Re: [php] Runden
>
>
> $zahl           =    7.6530612244898;
> $gerundet    =    round($zahl*100)/100;
>
> gruss
> mike

Hallo, warum nicht mit INT?

$y=18;
$x=int($y/5);

Gruß Mike G.




php::bar PHP Wiki   -   Listenarchive