note 97552 added to function.pow

From: Date: Mon, 26 Apr 2010 02:05:44 +0000
Subject: note 97552 added to function.pow
Groups: php.notes 
Request: Send a blank email to php-notes+get-168632@lists.php.net to get a copy of this message
Correction on my previous note about 'precision' - the threshold for large number corruption for the float type is actually closer to 16, as demonstrated by throwing in a '(pow(10, $i) - 1)' column to the table. Also, PHP just prefers to display the 'E' notation of float values where possible after about 5 decimal places rather than the actual decimal number (1.0E-5 vs 0.00005). Bottom line though is, if you're working with larger numbers or require very fine decimal precision or prefer displaying the full decimal number, use the bc math functions instead. And, do check out PHP's considerations about the float type here: http://php.net/manual/en/language.types.float.php ---- Server IP: 192.41.40.227 Probable Submitter: 66.25.188.193 ---- Manual Page -- http://www.php.net/manual/en/function.pow.php Edit -- https://master.php.net/note/edit/97552 Del: integrated -- https://master.php.net/note/delete/97552/integrated Del: useless -- https://master.php.net/note/delete/97552/useless Del: bad code -- https://master.php.net/note/delete/97552/bad+code Del: spam -- https://master.php.net/note/delete/97552/spam Del: non-english -- https://master.php.net/note/delete/97552/non-english Del: in docs -- https://master.php.net/note/delete/97552/in+docs Del: other reasons-- https://master.php.net/note/delete/97552 Reject -- https://master.php.net/note/reject/97552 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168632) next »