note 103097 added to function.bcscale

From: Date: Fri, 25 Mar 2011 15:05:51 +0000
Subject: note 103097 added to function.bcscale
Groups: php.notes 
Request: Send a blank email to php-notes+get-178202@lists.php.net to get a copy of this message
Another way to remove the unnecessary trialling zeros in one line : <?php echo rtrim('1.2500000000', '0'); // 1.25 ?> Which seems totally appropriate since we are working with strings, and also is likely to be the fastest way. ---- Server IP: 69.147.83.197 Probable Submitter: 78.226.240.47 ---- Manual Page -- http://www.php.net/manual/en/function.bcscale.php Edit -- https://master.php.net/note/edit/103097 Del: integrated -- https://master.php.net/note/delete/103097/integrated Del: useless -- https://master.php.net/note/delete/103097/useless Del: bad code -- https://master.php.net/note/delete/103097/bad+code Del: spam -- https://master.php.net/note/delete/103097/spam Del: non-english -- https://master.php.net/note/delete/103097/non-english Del: in docs -- https://master.php.net/note/delete/103097/in+docs Del: other reasons-- https://master.php.net/note/delete/103097 Reject -- https://master.php.net/note/reject/103097 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178202) next »