Skip to content

Commit

Permalink
Force fixed notation
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Nov 23, 2023
1 parent f9c7629 commit 460a6ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/StftPitchShift/Timer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <chrono>
#include <ios>
#include <iostream>
#include <map>
#include <numeric>
Expand Down Expand Up @@ -100,8 +101,9 @@ namespace stftpitchshift
const double stdev = std::sqrt(sumsum / data.size() - mean * mean);

std::ostringstream result;
result.setf(result.flags() | std::ios::fixed);
result.precision(3);
result << mean << " ± " << stdev << " " << unit << " n=" << data.size();
result << mean << " \u00b1 " << stdev << " " << unit << " n=" << data.size();

return result.str();
}
Expand Down

0 comments on commit 460a6ea

Please sign in to comment.