+ const gchar *tmpptr = endptr;
+ value = g_strtod((const gchar *)ptr, (gchar **)&endptr);
+ // Detect when endptr hasn't changed (which may occur if no conversion took place)
+ // particularly if the last character is a ',' or there are multiple '.'s like '5.5.'
+ if ( endptr == tmpptr )
+ break;
+ nbFloat++;