Output float number with fixed flag
#include <iostream> #include <iomanip> using namespace std; int main(void){ float value = 0.000123; cout << setiosflags(ios::fixed) << value << '\n'; }