note 30715 added to language.types.float

From: Date: Wed, 26 Mar 2003 16:35:16 +0000
Subject: note 30715 added to language.types.float
Groups: php.notes 
Request: Send a blank email to php-notes+get-45847@lists.php.net to get a copy of this message
Just to mention .... $something = "12.20"; $value = (float) $something; Depending you locale settings (see setlocale) this will return a float number 12.2 or 12 (without decimal part, if you locale uses another symbol than dot for decimal part) Be aware if u are working with PHP using one locale setting (by setlocale) and a SQL database with other locale .... -- http://www.php.net/manual/en/language.types.float.php http://master.php.net/manage/user-notes.php?action=edit+30715 http://master.php.net/manage/user-notes.php?action=delete+30715 http://master.php.net/manage/user-notes.php?action=reject+30715

« previous php.notes (#45847) next »