Se il numero contiene virgole, anziche` punti:

var numero=parseFloat(stringa.replace(/\,/,'.');