Take the tour ×  I have an array of floats similar to
4.0157725356416E+24 that are not being rounded with round().
(watchdog is a drupal logging tool)  $score =
($results['results'][0]['score']); watchdog( 'multi', "float:
$score");  $score = ($score * 100); watchdog( 'multi', "percent
(". gettype($score) . "): $score");  $score = round( $score );
watchdog( 'multi', "round: $score");  and the out put of this
is:  > float: 1.9532660466727E+25 > percent (double):
1.9532660466727E+27 > round: 1.9532660466727E+27  I'm missing
something here...  share|improve this question Where are you
doing round()? –  q3d Jul 26 '12 at 17:19 add comment  1 Answer
up vote 3 down vote accepted  You're looking at exponential
numbers (i.e. 1.9532660466727 * 10 ^ 27). They are still being
rounded to the nearest integer, they're just HUGE.  It's the
same as 1,953,266,046,672,700,000,000,000,000  share|improve
this answer You're absolutely right. That data is supposed to be
a fraction so my mind made that exponent negative. Thanks fo