note 97552 deleted from function.pow by danbrown

From: Date: Mon, 26 Apr 2010 14:36:10 +0000
Subject: note 97552 deleted from function.pow by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168658@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- 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

« previous php.notes (#168658) next »