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...