Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / round
round

round

(PHP 3, PHP 4 )

round -- Runden eines Wertes

Beschreibung

double round ( double val [, int precision])

Diese Funktion rundet den Eingabewert val auf precision Stellen nach dem Komma auf oder ab.

$foo = round (3.4);   // $foo == 3.0
$foo = round (3.5);   // $foo == 4.0
$foo = round (3.6);   // $foo == 4.0

$foo = round (1.95583,2);   // $foo == 1.96

Anmerkung: Der Parameter precision ist nur in PHP 4 verfügbar.

Siehe auch ceil() und floor().


© 1998-2007 Gold Vision Communications All Rights Reserved.