replacing old c floating converting with stringstream