note 4525 modified in intval by ronabop
| From: | ronabop@php.net | Date: | Sat, 12 Aug 2000 21:17:24 +0000 |
| Subject: | note 4525 modified in intval by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1560@lists.php.net to get a copy of this message | ||
Want to return a variable including decimals?
$a = "222,22324"
$a = $a * 100; # = 22222,324
$a = intval($a * 100) / 100 ; # = 222,22
http://www.php.net/manual/function.intval.php