Use ostream instead of stringstream
GetVar should preserve full double precision