When shifted into an ostream str, changes the output formatting to scientific by calling str.setf(std::ios_base::scientific, std::ios_base::floatfield).
str
str.setf(std::ios_base::scientific, std::ios_base::floatfield)