Changeset 117 for trunk

Show
Ignore:
Timestamp:
10/09/09 16:30:38 (13 years ago)
Author:
andreu
Message:

PHP tool : String to float conversion problem resolved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tool/metroSite.php

    r68 r117  
    176176                      $buffer_split = split(" ",$buffer); 
    177177                      if (trim($buffer_split[0]) != "nan"){ 
    178                         $tab_in[$i] += trim($buffer_split[0]); 
     178                        $tab_in[$i] += str_replace(',','.',trim($buffer_split[0])); 
    179179                      } 
    180180                      if (trim($buffer_split[1]) != "nan"){ 
    181                         $tab_out[$i] += trim($buffer_split[1]); 
     181                        $tab_out[$i] += str_replace(',','.',trim($buffer_split[0])); 
    182182                      } 
    183183                      $i++;