fixes #2729. Using stringstream to parse a number is more robust than boost::lexical_cast
fixes #2729. Using stringstream to parse a number is more robust than boost::lexical_cast

stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan