parse a number with thousand comma separator