SV: [PHP] round up number

From: Date: Wed, 14 Mar 2001 09:13:32 +0000
Subject: SV: [PHP] round up number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43799@lists.php.net to get a copy of this message
>How do I round up a lot of decimal number like 10.232656898 to be 10.23 ? Should I use this? >$num = 10.26564787; >$Rnum = round($num); >What would be the function I am looking for and how? Try: $num = 10.26564787; $Rnum = round($num, 2); /Johan

« previous php.general (#43799) next »