in reply to Parse float from string

How about $val += 0;