Skip to content

Commit

Permalink
Merge pull request #138 from sni/fix_non_well_formed_numeric_value
Browse files Browse the repository at this point in the history
fix non well formed numeric value encountered
  • Loading branch information
lingej committed Aug 21, 2017
2 parents 62308e1 + 8b2bfae commit fbf8f3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions share/pnp/application/helpers/pnp.php
Expand Up @@ -121,6 +121,7 @@ public static function adjust_unit($value,$base=1000,$format='%.3lf'){
preg_match('/^(-?[0-9\.,]+)\s*(\S?)(\S?)/',$value,$matches);

$mag = 0;
$value = $matches[1];
while ($value >= $base){
$value /= $base;
$mag++;
Expand Down

0 comments on commit fbf8f3b

Please sign in to comment.