Name

scientific function — Manipulator to use scientific notation for output

Synopsis

ios_base& scientific(ios_base&)

The fixed function is a manipulator that sets the floating-point output style to scientific or exponential notation. The function calls stream.setf(ios_base::scientific, ios_base::floatfield) and returns stream.