note 105790 added to function.round

From: Date: Thu, 15 Sep 2011 08:24:11 +0000
Subject: note 105790 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-183181@lists.php.net to get a copy of this message
this function (as all mathematical operators) takes care of the setlocale setting, resulting in some weirdness when using the result where the english math notation is expected, as the printout of the result in a width: style attribute! $a=3/4; echo round($a, 2); // 0.75 setlocale(LC_ALL, 'it_IT@euro', 'it_IT', 'it'); $b=3/4; echo round($b,2); // 0,75 ---- Server IP: 69.147.83.197 Probable Submitter: 188.135.150.253 ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- https://master.php.net/note/edit/105790 Del: integrated -- https://master.php.net/note/delete/105790/integrated Del: useless -- https://master.php.net/note/delete/105790/useless Del: bad code -- https://master.php.net/note/delete/105790/bad+code Del: spam -- https://master.php.net/note/delete/105790/spam Del: non-english -- https://master.php.net/note/delete/105790/non-english Del: in docs -- https://master.php.net/note/delete/105790/in+docs Del: other reasons-- https://master.php.net/note/delete/105790 Reject -- https://master.php.net/note/reject/105790 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183181) next »