var num = "200.50"
if(!isNaN(parseFloat("200.50",10)) alert("合法");