Skip to content

Commit 0c68bbb

Browse files
committed
Ask for more float precision in stream if requested
1 parent c3d0b6c commit 0c68bbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fast++-write_output.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ void write_catalog(const options_t& opts, const input_state_t& input, const grid
183183
}
184184
fout << std::endl;
185185

186+
if (opts.output_precision > 0) {
187+
fout << std::setprecision(-log10(opts.output_precision));
188+
}
189+
186190
// Print data
187191
for (uint_t is : range(input.id)) {
188192
fout << " ";

0 commit comments

Comments
 (0)