note 120168 added to function.floatval

From: Date: Tue, 15 Nov 2016 11:41:41 +0000
Subject: note 120168 added to function.floatval
Groups: php.notes 
Request: Send a blank email to php-notes+get-207108@lists.php.net to get a copy of this message
Be aware the last tofloat($num). In theory it is very useful to have a function "separator-agnostic" (I think "locale based" solutions are useless if you have to parse a user file that can have a locale different to the server). But this can lead to misinterpretations; in short: "123,456" is "123.456" (so comma used as decimal separator) or "123456" (comma used as thousand separator). In any case, if you really want to use it, please don't forget that this function doesn't manage negative numbers. ---- Server IP: 72.52.91.14 Probable Submitter: 90.147.140.230 ---- Manual Page -- http://php.net/manual/en/function.floatval.php Edit -- https://master.php.net/note/edit/120168 Del: integrated -- https://master.php.net/note/delete/120168/integrated Del: useless -- https://master.php.net/note/delete/120168/useless Del: bad code -- https://master.php.net/note/delete/120168/bad+code Del: spam -- https://master.php.net/note/delete/120168/spam Del: non-english -- https://master.php.net/note/delete/120168/non-english Del: in docs -- https://master.php.net/note/delete/120168/in+docs Del: other reasons-- https://master.php.net/note/delete/120168 Reject -- https://master.php.net/note/reject/120168 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207108) next »